This is an automated email from the git hooks/post-receive script. g o t t c o d e p u s h e d a c o m m i t t o b r a n c h m a s t e r in repository panel-plugins/xfce4-whiskermenu-plugin.
commit 0b76325f17133eb11a717ab771212509b729a1e0 Author: Graeme Gott <gra...@gottcode.org> Date: Sat Feb 1 19:56:56 2020 -0500 Use constant begin/end container calls. --- panel-plugin/favorites-page.cpp | 2 +- panel-plugin/search-page.cpp | 2 +- panel-plugin/settings.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/panel-plugin/favorites-page.cpp b/panel-plugin/favorites-page.cpp index 4b8452a..4d98ba0 100644 --- a/panel-plugin/favorites-page.cpp +++ b/panel-plugin/favorites-page.cpp @@ -56,7 +56,7 @@ bool FavoritesPage::contains(Launcher* launcher) const } std::string desktop_id(launcher->get_desktop_id()); - return std::find(wm_settings->favorites.begin(), wm_settings->favorites.end(), desktop_id) != wm_settings->favorites.end(); + return std::find(wm_settings->favorites.cbegin(), wm_settings->favorites.cend(), desktop_id) != wm_settings->favorites.cend(); } //----------------------------------------------------------------------------- diff --git a/panel-plugin/search-page.cpp b/panel-plugin/search-page.cpp index 23aea3d..026cf11 100644 --- a/panel-plugin/search-page.cpp +++ b/panel-plugin/search-page.cpp @@ -77,7 +77,7 @@ void SearchPage::set_filter(const gchar* filter) m_matches.push_back(launcher); } } - else if (std::find(m_matches.begin(), m_matches.end(), &m_run_action) == m_matches.end()) + else if (std::find(m_matches.cbegin(), m_matches.cend(), &m_run_action) == m_matches.cend()) { m_matches.insert(m_matches.begin(), &m_run_action); } diff --git a/panel-plugin/settings.cpp b/panel-plugin/settings.cpp index afeb7a9..b093897 100644 --- a/panel-plugin/settings.cpp +++ b/panel-plugin/settings.cpp @@ -62,7 +62,7 @@ static void read_vector_entry(XfceRc* rc, const char* key, std::vector<std::stri for (size_t i = 0; values[i]; ++i) { std::string desktop_id(values[i]); - if (std::find(desktop_ids.begin(), desktop_ids.end(), desktop_id) == desktop_ids.end()) + if (std::find(desktop_ids.cbegin(), desktop_ids.cend(), desktop_id) == desktop_ids.cend()) { desktop_ids.push_back(desktop_id); } -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org https://mail.xfce.org/mailman/listinfo/xfce4-commits