[gnote] Remove FOREACH from utils



commit 1d499dd6d00825636474a537439b0ca4de23c8a7
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 7 18:17:59 2019 +0300

    Remove FOREACH from utils

 src/utils.cpp | 2 +-
 src/utils.hpp | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/utils.cpp b/src/utils.cpp
index 1eaf4c72..b7640909 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -372,7 +372,7 @@ namespace gnote {
     {
       m_fake_menu.set_sensitive(enable);
       std::vector<Gtk::Widget*> items = m_fake_menu.get_children();
-      FOREACH(Gtk::Widget *item, items) {
+      for(Gtk::Widget *item : items) {
         item->set_sensitive(enable);
       }
     }
diff --git a/src/utils.hpp b/src/utils.hpp
index aaa9e3a8..c38cc4fd 100644
--- a/src/utils.hpp
+++ b/src/utils.hpp
@@ -38,7 +38,6 @@
 #include <gtkmm/toggletoolbutton.h>
 #include <gtkmm/toolbar.h>
 
-#include "base/macros.hpp"
 #include "sharp/exception.hpp"
 #include "sharp/uri.hpp"
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]