[gnote] Remove FOREACH from notebuffer



commit b7b052012e8b6f67176cd08cd16965581b3fb334
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Apr 7 17:54:00 2019 +0300

    Remove FOREACH from notebuffer

 src/notebuffer.cpp | 4 ++--
 src/notebuffer.hpp | 3 +--
 2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/notebuffer.cpp b/src/notebuffer.cpp
index 98452cb7..9098e4db 100644
--- a/src/notebuffer.cpp
+++ b/src/notebuffer.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2010-2017 Aurimas Cernius
+ * Copyright (C) 2010-2017,2019 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -334,7 +334,7 @@ namespace gnote {
     iters[0] = start;
     iters[1] = end_iter;
 
-    FOREACH(Gtk::TextIter iter, iters) {
+    for(Gtk::TextIter iter : iters) {
       Gtk::TextIter line_start = iter;
       line_start.set_line_offset(0);
 
diff --git a/src/notebuffer.hpp b/src/notebuffer.hpp
index 7f3dc594..e8409a38 100644
--- a/src/notebuffer.hpp
+++ b/src/notebuffer.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2011-2017 Aurimas Cernius
+ * Copyright (C) 2011-2017,2019 Aurimas Cernius
  * Copyright (C) 2009 Hubert Figuiere
  *
  * This program is free software: you can redistribute it and/or modify
@@ -33,7 +33,6 @@
 #include <gtkmm/texttag.h>
 #include <gtkmm/widget.h>
 
-#include "base/macros.hpp"
 #include "notetag.hpp"
 
 namespace sharp {


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