[glibmm/sigc3] tests: Do not use deprecated sigc::mem_fun(pointer, func).



commit 4395bd868fc52d78dab027a41407db41140d0313
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Mar 10 14:12:52 2016 +0100

    tests: Do not use deprecated sigc::mem_fun(pointer, func).
    
    Instead use sigc::mem_fun(reference, func).

 tests/glibmm_refptr_sigc_bind/main.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/glibmm_refptr_sigc_bind/main.cc b/tests/glibmm_refptr_sigc_bind/main.cc
index 7d3546a..826b915 100644
--- a/tests/glibmm_refptr_sigc_bind/main.cc
+++ b/tests/glibmm_refptr_sigc_bind/main.cc
@@ -36,10 +36,10 @@ public:
   {
 // std::cout << "new Test" << std::endl;
 #ifdef ACTIVATE_BUG // See https://bugzilla.gnome.org/show_bug.cgi?id=564005#c15s
-    action->signal_sig1().connect(sigc::bind(sigc::mem_fun(this, &Test::on_sig1), action));
+    action->signal_sig1().connect(sigc::bind(sigc::mem_fun(*this, &Test::on_sig1), action));
 #else
     Glib::RefPtr<Action> action2(new Action);
-    action->signal_sig1().connect(sigc::bind(sigc::mem_fun(this, &Test::on_sig1), action2));
+    action->signal_sig1().connect(sigc::bind(sigc::mem_fun(*this, &Test::on_sig1), action2));
 #endif
   }
 


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