From 4395bd868fc52d78dab027a41407db41140d0313 Mon Sep 17 00:00:00 2001 From: Murray Cumming Date: Thu, 10 Mar 2016 14:12:52 +0100 Subject: 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 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/glibmm_refptr_sigc_bind/main.cc b/tests/glibmm_refptr_sigc_bind/main.cc index 7d3546a0..826b915e 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 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 } -- cgit v1.2.1