Skip to content

Commit

Permalink
Make use of cbegin()/cend()
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitcowboy committed Dec 22, 2021
1 parent 7fa1ff8 commit c52b437
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnuplot_i.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1743,8 +1743,8 @@ bool Gnuplot::get_program_path(void)
#endif

// scan list for Gnuplot program files
for (std::list<std::string>::const_iterator i = ls.begin();
i != ls.end(); ++i)
for (std::list<std::string>::const_iterator i = ls.cbegin();
i != ls.cend(); ++i)
{
tmp = (*i) + "/" + Gnuplot::m_sGNUPlotFileName;
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__TOS_WIN__)
Expand Down

0 comments on commit c52b437

Please sign in to comment.