[gnote/gnome-3-22] Fix build using newer compiler/Gtkmm



commit 3aa440978471db6d9a7153c7cd0a778ab59397f3
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sun Mar 19 18:00:29 2017 +0200

    Fix build using newer compiler/Gtkmm

 src/gnote.cpp             |    2 +-
 src/searchnoteswidget.cpp |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gnote.cpp b/src/gnote.cpp
index e193a52..a6fe36e 100644
--- a/src/gnote.cpp
+++ b/src/gnote.cpp
@@ -170,7 +170,7 @@ namespace gnote {
           Glib::RefPtr<RemoteControlClient> remote;
           try {
             remote = RemoteControlProxy::get_instance();
-            DBG_ASSERT(remote, "remote is NULL, something is wrong");
+            DBG_ASSERT(bool(remote), "remote is NULL, something is wrong");
             if(remote) {
               remote->DisplaySearch();
             }
diff --git a/src/searchnoteswidget.cpp b/src/searchnoteswidget.cpp
index 2100846..c1c794a 100644
--- a/src/searchnoteswidget.cpp
+++ b/src/searchnoteswidget.cpp
@@ -476,7 +476,7 @@ notebooks::Notebook::Ptr SearchNotesWidget::get_selected_notebook() const
 void SearchNotesWidget::select_all_notes_notebook()
 {
   Glib::RefPtr<Gtk::TreeModel> model = m_notebooksTree->get_model();
-  DBG_ASSERT(model, "model is NULL");
+  DBG_ASSERT(bool(model), "model is NULL");
   if(!model) {
     return;
   }


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