[gnote] Fix build without C++11



commit 4a941d3d6c2b2a7178684f3ffead631eae917668
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Oct 27 14:40:03 2013 +0200

    Fix build without C++11
    
    Fixes Bug 710949.

 src/notebuffer.cpp |    2 +-
 src/notewindow.cpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/notebuffer.cpp b/src/notebuffer.cpp
index fcc2e2b..b38b29c 100644
--- a/src/notebuffer.cpp
+++ b/src/notebuffer.cpp
@@ -314,7 +314,7 @@ namespace gnote {
   void NoteBuffer::range_deleted_event(const Gtk::TextIter & start,const Gtk::TextIter & end_iter)
   {
     //
-    std::array<Gtk::TextIter, 2> iters;
+    array<Gtk::TextIter, 2> iters;
     iters[0] = start;
     iters[1] = end_iter;
 
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index 11ed612..d8270e8 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -633,7 +633,7 @@ namespace gnote {
     embeddable_toolbar()->set_sensitive(m_enabled);
     if(m_global_keys)
       m_global_keys->enabled(m_enabled);
-    FOREACH(Glib::RefPtr<Gtk::Action> & action, get_widget_actions()) {
+    FOREACH(const Glib::RefPtr<Gtk::Action> & action, get_widget_actions()) {
       if(Glib::RefPtr<NonModifyingNoteAction>::cast_dynamic(action) == 0) {
         action->set_sensitive(enable);
       }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]