[Xfce4-commits] [panel-plugins/xfce4-whiskermenu-plugin] 31/473: Remove constant begin/end container calls.

noreply at xfce.org noreply at xfce.org
Mon Feb 16 23:53:21 CET 2015


This is an automated email from the git hooks/post-receive script.

gottcode pushed a commit to branch master
in repository panel-plugins/xfce4-whiskermenu-plugin.

commit e5ad2f872275b2ab9acac72c18751a7af5eb1a54
Author: Graeme Gott <graeme at gottcode.org>
Date:   Wed Jun 26 15:00:25 2013 -0400

    Remove constant begin/end container calls.
    
    Downgrade to C++98.
---
 src/applications_page.cpp |    2 +-
 src/list_page.cpp         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/applications_page.cpp b/src/applications_page.cpp
index af5132d..7f9186d 100644
--- a/src/applications_page.cpp
+++ b/src/applications_page.cpp
@@ -110,7 +110,7 @@ bool ApplicationsPage::on_filter(GtkTreeModel* model, GtkTreeIter* iter)
 	gtk_tree_model_get(model, iter, LauncherModel::COLUMN_LAUNCHER, &launcher, -1);
 
 	auto category = m_categories[m_current_category];
-	return std::find(category.cbegin(), category.cend(), launcher) != category.cend();
+	return std::find(category.begin(), category.end(), launcher) != category.end();
 }
 
 //-----------------------------------------------------------------------------
diff --git a/src/list_page.cpp b/src/list_page.cpp
index fe98a4d..dce162c 100644
--- a/src/list_page.cpp
+++ b/src/list_page.cpp
@@ -64,7 +64,7 @@ ListPage::~ListPage()
 bool ListPage::contains(Launcher* launcher) const
 {
 	std::string desktop_id = garcon_menu_item_get_desktop_id(launcher->get_item());
-	return std::find(m_desktop_ids.cbegin(), m_desktop_ids.cend(), desktop_id) != m_desktop_ids.cend();
+	return std::find(m_desktop_ids.begin(), m_desktop_ids.end(), desktop_id) != m_desktop_ids.end();
 }
 
 //-----------------------------------------------------------------------------

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list