[gnote/gnome-3-10] Fix build without C++11
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote/gnome-3-10] Fix build without C++11
- Date: Sun, 27 Oct 2013 14:38:32 +0000 (UTC)
commit 369d9e7fdecc5375ebd07ad90d2af4e0576c5a28
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 fbf7995..d7986d0 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -623,7 +623,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<NonModifyingAction>::cast_dynamic(action) == 0) {
action->set_sensitive(enable);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]