[gnote] Remove FOREACH from specialnotebooks
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove FOREACH from specialnotebooks
- Date: Sun, 7 Apr 2019 16:44:31 +0000 (UTC)
commit 2c31f38bb411b6d2c1c4ab8e45b20955504ff507
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 7 18:42:56 2019 +0300
Remove FOREACH from specialnotebooks
src/notebooks/specialnotebooks.cpp | 4 ++--
src/notebooks/specialnotebooks.hpp | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/notebooks/specialnotebooks.cpp b/src/notebooks/specialnotebooks.cpp
index 4c80a899..f6b10f78 100644
--- a/src/notebooks/specialnotebooks.cpp
+++ b/src/notebooks/specialnotebooks.cpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010-2014,2017 Aurimas Cernius
+ * Copyright (C) 2010-2014,2017,2019 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -181,7 +181,7 @@ bool ActiveNotesNotebook::empty()
// ignore template notes
Tag::Ptr templ_tag = template_tag();
- FOREACH(const Note::Ptr & note, m_notes) {
+ for(const Note::Ptr & note : m_notes) {
if(!note->contains_tag(templ_tag)) {
return false;
}
diff --git a/src/notebooks/specialnotebooks.hpp b/src/notebooks/specialnotebooks.hpp
index 79d9672f..b4c6af27 100644
--- a/src/notebooks/specialnotebooks.hpp
+++ b/src/notebooks/specialnotebooks.hpp
@@ -1,7 +1,7 @@
/*
* gnote
*
- * Copyright (C) 2010-2014,2017 Aurimas Cernius
+ * Copyright (C) 2010-2014,2017,2019 Aurimas Cernius
* Copyright (C) 2009 Hubert Figuiere
*
* This program is free software: you can redistribute it and/or modify
@@ -26,7 +26,6 @@
#include <set>
-#include "base/macros.hpp"
#include "notebook.hpp"
#include "tag.hpp"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]