[gnote] Remove FOREACH from notewindow
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Remove FOREACH from notewindow
- Date: Sun, 7 Apr 2019 16:43:51 +0000 (UTC)
commit 74724726350c0ec7bdffa564d67b223dced2f660
Author: Aurimas Černius <aurisc4 gmail com>
Date: Sun Apr 7 18:25:42 2019 +0300
Remove FOREACH from notewindow
src/notewindow.cpp | 4 ++--
src/notewindow.hpp | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index 43333560..4045338c 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -324,7 +324,7 @@ namespace gnote {
NoteManager & manager = static_cast<NoteManager&>(m_note.manager());
Note::Ptr note = std::dynamic_pointer_cast<Note>(m_note.shared_from_this());
- FOREACH(NoteAddin *addin, manager.get_addin_manager().get_note_addins(note)) {
+ for(NoteAddin *addin : manager.get_addin_manager().get_note_addins(note)) {
auto addin_widgets = addin->get_actions_popover_widgets();
popover_widgets.insert(popover_widgets.end(), addin_widgets.begin(), addin_widgets.end());
}
@@ -611,7 +611,7 @@ namespace gnote {
embeddable_toolbar()->set_sensitive(m_enabled);
if(m_global_keys)
m_global_keys->enabled(m_enabled);
- FOREACH(const MainWindowAction::Ptr & action, get_widget_actions()) {
+ for(const MainWindowAction::Ptr & action : get_widget_actions()) {
// A list includes empty actions to mark separators, non-modifying actions are always enabled
if(action && !Glib::RefPtr<NonModifyingNoteAction>::cast_dynamic(action)) {
action->set_enabled(enable);
diff --git a/src/notewindow.hpp b/src/notewindow.hpp
index 6e95b367..523389ce 100644
--- a/src/notewindow.hpp
+++ b/src/notewindow.hpp
@@ -33,7 +33,6 @@
#include <gtkmm/textview.h>
#include <gtkmm/scrolledwindow.h>
-#include "base/macros.hpp"
#include "mainwindowembeds.hpp"
#include "note.hpp"
#include "undo.hpp"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]