summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-03-10 14:12:52 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-03-10 14:12:52 +0100
commit4395bd868fc52d78dab027a41407db41140d0313 (patch)
treed03a621d2366dbb6d7cc94c9fded5c588324d6ef
parenta5f00040e22e3a4eb71e9c4226493c37625cb477 (diff)
downloadglibmm-sigc3.tar.gz
tests: Do not use deprecated sigc::mem_fun(pointer, func).sigc3
Instead use sigc::mem_fun(reference, func).
-rw-r--r--tests/glibmm_refptr_sigc_bind/main.cc4
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 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<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
}