[gnote] Remove FOREACH from tagmanager



commit 3af57bbd306eecd611fcfc40d312e04c473e8aca
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 7 18:32:40 2019 +0300

    Remove FOREACH from tagmanager

 src/tagmanager.cpp | 4 ++--
 src/tagmanager.hpp | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/tagmanager.cpp b/src/tagmanager.cpp
index 90550fed..b110ddd1 100644
--- a/src/tagmanager.cpp
+++ b/src/tagmanager.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2011,2013-2014,2017 Aurimas Cernius
+ * Copyright (C) 2011,2013-2014,2017,2019 Aurimas Cernius
  * Copyright (C) 2010 Debarshi Ray
  * Copyright (C) 2009 Hubert Figuiere
  *
@@ -210,7 +210,7 @@ namespace gnote {
 
         std::list<NoteBase*> notes;
         tag->get_notes(notes);
-        FOREACH(NoteBase *note_iter, notes) {
+        for(NoteBase *note_iter : notes) {
           note_iter->remove_tag(tag);
         }
       }
diff --git a/src/tagmanager.hpp b/src/tagmanager.hpp
index 7ee757b9..dc2fc6f9 100644
--- a/src/tagmanager.hpp
+++ b/src/tagmanager.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2013,2017 Aurimas Cernius
+ * Copyright (C) 2013,2017,2019 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -31,7 +31,6 @@
 #include <gtkmm/liststore.h>
 #include <gtkmm/treemodelsort.h>
 
-#include "base/macros.hpp"
 #include "itagmanager.hpp"
 #include "tag.hpp"
 


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