[gnote] Remove FOREACH from notebooknoteaddin



commit 02794f2fd9e25e69c65c894eb90b5f50f6ad544e
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 7 18:41:07 2019 +0300

    Remove FOREACH from notebooknoteaddin

 src/notebooks/notebooknoteaddin.cpp | 2 +-
 src/notebooks/notebooknoteaddin.hpp | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/notebooks/notebooknoteaddin.cpp b/src/notebooks/notebooknoteaddin.cpp
index da8f63ed..8faa9a32 100644
--- a/src/notebooks/notebooknoteaddin.cpp
+++ b/src/notebooks/notebooknoteaddin.cpp
@@ -158,7 +158,7 @@ namespace notebooks {
     std::list<Gtk::ModelButton*> notebook_menu_items;
     get_notebook_menu_items(notebook_menu_items);
     if(!notebook_menu_items.empty()) {
-      FOREACH(Gtk::ModelButton *item, notebook_menu_items) {
+      for(Gtk::ModelButton *item : notebook_menu_items) {
         menu->add(*item);
       }
 
diff --git a/src/notebooks/notebooknoteaddin.hpp b/src/notebooks/notebooknoteaddin.hpp
index 4bdf3f00..70f6f952 100644
--- a/src/notebooks/notebooknoteaddin.hpp
+++ b/src/notebooks/notebooknoteaddin.hpp
@@ -26,7 +26,6 @@
 
 #include <gtkmm/modelbutton.h>
 
-#include "base/macros.hpp"
 #include "noteaddin.hpp"
 
 namespace gnote {


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