[gnote] Remove FOREACH from searchnoteswidget
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove FOREACH from searchnoteswidget
- Date: Sun, 7 Apr 2019 16:44:41 +0000 (UTC)
commit fb1cf0c480f7d3a7e814d57d7c67821a13c7085b
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 7 18:46:29 2019 +0300
Remove FOREACH from searchnoteswidget
src/searchnoteswidget.cpp | 4 ++--
src/searchnoteswidget.hpp | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/searchnoteswidget.cpp b/src/searchnoteswidget.cpp
index e206a6d1..1efc29f1 100644
--- a/src/searchnoteswidget.cpp
+++ b/src/searchnoteswidget.cpp
@@ -345,7 +345,7 @@ void SearchNotesWidget::on_notebook_row_edited(const Glib::ustring& /*tree_path*
new_text.c_str());
std::list<NoteBase*> notes;
old_notebook->get_tag()->get_notes(notes);
- FOREACH(NoteBase *note, notes) {
+ for(NoteBase *note : notes) {
notebooks::NotebookManager::obj().move_note_to_notebook(
static_pointer_cast<Note>(note->shared_from_this()), new_notebook);
}
@@ -513,7 +513,7 @@ void SearchNotesWidget::update_results()
int cnt = 0;
- FOREACH(const NoteBase::Ptr & note_iter, m_manager.get_notes()) {
+ for(const NoteBase::Ptr & note_iter : m_manager.get_notes()) {
Note::Ptr note(static_pointer_cast<Note>(note_iter));
Glib::ustring nice_date = utils::get_pretty_print_date(note->change_date(), true);
diff --git a/src/searchnoteswidget.hpp b/src/searchnoteswidget.hpp
index 0121d182..c8bdae93 100644
--- a/src/searchnoteswidget.hpp
+++ b/src/searchnoteswidget.hpp
@@ -31,7 +31,6 @@
#include <gtkmm/scrolledwindow.h>
#include <sigc++/sigc++.h>
-#include "base/macros.hpp"
#include "mainwindowembeds.hpp"
#include "notebooks/notebook.hpp"
#include "notebooks/notebookstreeview.hpp"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]