[gnote] Remove FOREACH from watchers
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove FOREACH from watchers
- Date: Sun, 7 Apr 2019 16:42:50 +0000 (UTC)
commit 03d5fcf938ddbcfe25079362d9e6abd976c7789b
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 7 17:49:07 2019 +0300
Remove FOREACH from watchers
src/watchers.cpp | 2 +-
src/watchers.hpp | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/watchers.cpp b/src/watchers.cpp
index 7e5b8c6c..9a184f6c 100644
--- a/src/watchers.cpp
+++ b/src/watchers.cpp
@@ -449,7 +449,7 @@ namespace gnote {
Tag::Ptr lang_tag;
std::list<Tag::Ptr> tags;
get_note()->get_tags(tags);
- FOREACH(Tag::Ptr tag, tags) {
+ for(Tag::Ptr tag : tags) {
if(tag->name().find(LANG_PREFIX) == 0) {
lang_tag = tag;
break;
diff --git a/src/watchers.hpp b/src/watchers.hpp
index 182be3df..f6fe0982 100644
--- a/src/watchers.hpp
+++ b/src/watchers.hpp
@@ -39,7 +39,6 @@ extern "C" {
#include <gtkmm/textiter.h>
#include <gtkmm/texttag.h>
-#include "base/macros.hpp"
#include "noteaddin.hpp"
#include "triehit.hpp"
#include "utils.hpp"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]