[gnote] Remove FOREACH from silentui



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

    Remove FOREACH from silentui

 src/synchronization/silentui.cpp | 6 +++---
 src/synchronization/silentui.hpp | 3 +--
 2 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/synchronization/silentui.cpp b/src/synchronization/silentui.cpp
index a6810cab..0e7e331b 100644
--- a/src/synchronization/silentui.cpp
+++ b/src/synchronization/silentui.cpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2012-2014,2017 Aurimas Cernius
+ * Copyright (C) 2012-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
@@ -95,7 +95,7 @@ namespace sync {
   void SilentUI::on_connecting()
   {
     m_manager.read_only(true);
-    FOREACH(const NoteBase::Ptr & iter, m_manager.get_notes()) {
+    for(const NoteBase::Ptr & iter : m_manager.get_notes()) {
       iter->enabled(false);
     }
   }
@@ -104,7 +104,7 @@ namespace sync {
   void SilentUI::on_idle()
   {
     m_manager.read_only(false);
-    FOREACH(const NoteBase::Ptr & iter, m_manager.get_notes()) {
+    for(const NoteBase::Ptr & iter : m_manager.get_notes()) {
       iter->enabled(true);
     }
     m_ui_disabled = false;
diff --git a/src/synchronization/silentui.hpp b/src/synchronization/silentui.hpp
index 53f8bf42..982f11e5 100644
--- a/src/synchronization/silentui.hpp
+++ b/src/synchronization/silentui.hpp
@@ -1,7 +1,7 @@
 /*
  * gnote
  *
- * Copyright (C) 2012-2014,2017 Aurimas Cernius
+ * Copyright (C) 2012-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
@@ -22,7 +22,6 @@
 #define _SYNCHRONIZATION_SILENTUI_HPP_
 
 
-#include "base/macros.hpp"
 #include "notemanager.hpp"
 #include "syncui.hpp"
 


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