[gnote] Remove FOREACH from statistics



commit 4d91bbf79df49c87aca9ad56b596dfb9ad2eed87
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 7 18:02:07 2019 +0300

    Remove FOREACH from statistics

 src/addins/statistics/statisticswidget.cpp | 4 ++--
 src/addins/statistics/statisticswidget.hpp | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/addins/statistics/statisticswidget.cpp b/src/addins/statistics/statisticswidget.cpp
index 0c829e32..e427ea19 100644
--- a/src/addins/statistics/statisticswidget.cpp
+++ b/src/addins/statistics/statisticswidget.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2013-2014,2017 Aurimas Cernius
+ * Copyright (C) 2013-2014,2017,2019 Aurimas Cernius
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -106,7 +106,7 @@ private:
       }
       gnote::Tag::Ptr template_tag = gnote::ITagManager::obj().get_or_create_system_tag(
         gnote::ITagManager::TEMPLATE_NOTE_SYSTEM_TAG);
-      FOREACH(gnote::NoteBase::Ptr note, notes) {
+      for(gnote::NoteBase::Ptr note : notes) {
         for(std::map<gnote::notebooks::Notebook::Ptr, int>::iterator nb = notebook_notes.begin();
             nb != notebook_notes.end(); ++nb) {
           if(note->contains_tag(nb->first->get_tag()) && !note->contains_tag(template_tag)) {
diff --git a/src/addins/statistics/statisticswidget.hpp b/src/addins/statistics/statisticswidget.hpp
index 6d8e242a..30e41285 100644
--- a/src/addins/statistics/statisticswidget.hpp
+++ b/src/addins/statistics/statisticswidget.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2013,2017 Aurimas Cernius
+ * Copyright (C) 2013,2017,2019 Aurimas Cernius
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -23,7 +23,6 @@
 
 #include <gtkmm/treeview.h>
 
-#include "base/macros.hpp"
 #include "mainwindowembeds.hpp"
 #include "notemanager.hpp"
 


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