[gnote] Remove FOREACH from search



commit 3212cb281ca84e4d01ddeb3c564e6a58e833bb37
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 7 18:22:30 2019 +0300

    Remove FOREACH from search

 src/search.cpp | 4 ++--
 src/search.hpp | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/search.cpp b/src/search.cpp
index fcd3ef7e..752c0d32 100644
--- a/src/search.cpp
+++ b/src/search.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) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -55,7 +55,7 @@ namespace gnote {
       // Skip over notes that are template notes
     Tag::Ptr template_tag = 
ITagManager::obj().get_or_create_system_tag(ITagManager::TEMPLATE_NOTE_SYSTEM_TAG);
 
-    FOREACH(const NoteBase::Ptr & iter, m_manager.get_notes()) {
+    for(const NoteBase::Ptr & iter : m_manager.get_notes()) {
       Note::Ptr note(static_pointer_cast<Note>(iter));
 
       // Skip template notes
diff --git a/src/search.hpp b/src/search.hpp
index c358c659..f94801fb 100644
--- a/src/search.hpp
+++ b/src/search.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2011,2013-2014,2017 Aurimas Cernius
+ * Copyright (C) 2011,2013-2014,2017,2019 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -27,7 +27,6 @@
 #include <memory>
 #include <vector>
 
-#include "base/macros.hpp"
 #include "note.hpp"
 #include "notebooks/notebook.hpp"
 #include "sharp/string.hpp"


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