From c52b43713d5d6c9cde388e383d55a7e99068f45e Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Wed, 22 Dec 2021 13:09:02 +0100 Subject: [PATCH] Make use of cbegin()/cend() --- gnuplot_i.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gnuplot_i.hpp b/gnuplot_i.hpp index abd1de2..3e17c67 100644 --- a/gnuplot_i.hpp +++ b/gnuplot_i.hpp @@ -1743,8 +1743,8 @@ bool Gnuplot::get_program_path(void) #endif // scan list for Gnuplot program files - for (std::list::const_iterator i = ls.begin(); - i != ls.end(); ++i) + for (std::list::const_iterator i = ls.cbegin(); + i != ls.cend(); ++i) { tmp = (*i) + "/" + Gnuplot::m_sGNUPlotFileName; #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__TOS_WIN__)