[gnote] Remove FOREACH from recentchanges
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove FOREACH from recentchanges
- Date: Sun, 7 Apr 2019 16:43:25 +0000 (UTC)
commit 8a5982401828b4a55674a844497a6521a6fd33ba
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 7 18:10:30 2019 +0300
Remove FOREACH from recentchanges
src/recentchanges.cpp | 4 ++--
src/recentchanges.hpp | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/recentchanges.cpp b/src/recentchanges.cpp
index 30d6909d..e12dbc66 100644
--- a/src/recentchanges.cpp
+++ b/src/recentchanges.cpp
@@ -591,7 +591,7 @@ namespace gnote {
bool NoteRecentChanges::contains(EmbeddableWidget & widget)
{
- FOREACH(EmbeddableWidget *wgt, m_embedded_widgets) {
+ for(EmbeddableWidget *wgt : m_embedded_widgets) {
if(dynamic_cast<EmbeddableWidget*>(wgt) == &widget) {
return true;
}
@@ -602,7 +602,7 @@ namespace gnote {
bool NoteRecentChanges::is_foreground(EmbeddableWidget & widget)
{
- FOREACH(Gtk::Widget *wgt, m_embed_box.get_children()) {
+ for(Gtk::Widget *wgt : m_embed_box.get_children()) {
if(dynamic_cast<EmbeddableWidget*>(wgt) == &widget) {
return true;
}
diff --git a/src/recentchanges.hpp b/src/recentchanges.hpp
index 1ce5e1e5..daf170f7 100644
--- a/src/recentchanges.hpp
+++ b/src/recentchanges.hpp
@@ -29,7 +29,6 @@
#include <gtkmm/grid.h>
#include <gtkmm/popovermenu.h>
-#include "base/macros.hpp"
#include "mainwindowaction.hpp"
#include "note.hpp"
#include "searchnoteswidget.hpp"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]