[gnote] Remove FOREACH from backlinks
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove FOREACH from backlinks
- Date: Sun, 7 Apr 2019 16:43:10 +0000 (UTC)
commit 508e8376e738bf8e790377787ea5b400d8e01a8e
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 7 18:03:36 2019 +0300
Remove FOREACH from backlinks
src/addins/backlinks/backlinksnoteaddin.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/addins/backlinks/backlinksnoteaddin.cpp b/src/addins/backlinks/backlinksnoteaddin.cpp
index 843218e5..ae695a20 100644
--- a/src/addins/backlinks/backlinksnoteaddin.cpp
+++ b/src/addins/backlinks/backlinksnoteaddin.cpp
@@ -110,7 +110,7 @@ void BacklinksNoteAddin::update_menu(Gtk::Box *menu) const
void BacklinksNoteAddin::get_backlink_menu_items(std::list<Gtk::Widget*> & items) const
{
gnote::NoteBase::List notes = get_note()->manager().get_notes_linking_to(get_note()->get_title());
- FOREACH(const gnote::NoteBase::Ptr & note, notes) {
+ for(const gnote::NoteBase::Ptr & note : notes) {
if(note != get_note()) { // don't match ourself
auto button = manage(gnote::utils::create_popover_button("win.backlinks-open-note",
note->get_title()));
gtk_actionable_set_action_target_value(GTK_ACTIONABLE(button->gobj()),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]