summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2016-03-02 22:05:35 +0100
committerMurray Cumming <murrayc@murrayc.com>2016-03-08 08:42:58 +0100
commit2a396bf2450a666d12d918d0ded79113bea4a28d (patch)
tree3f53ec58ccb82eaf856bf7ece9b6287aa4f1cc93
parent1b25f05c10fc97fc5f8376c01d0317a650261060 (diff)
downloadglibmm-2a396bf2450a666d12d918d0ded79113bea4a28d.tar.gz
Correct bad uses of sigc::bind<1>.
sigc::bind<1>() is meant to bind a value for the second argument, which makes no sense for a method with 1 parameter. sigc::bind() seems fine. I found this while working in the sigc3 branch, using libsigc++-3.0, which is less forgiving of this error.
-rw-r--r--examples/thread/dispatcher.cc2
-rw-r--r--examples/thread/threadpool.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/thread/dispatcher.cc b/examples/thread/dispatcher.cc
index 9f0f56e3..ae9e084a 100644
--- a/examples/thread/dispatcher.cc
+++ b/examples/thread/dispatcher.cc
@@ -161,7 +161,7 @@ Application::Application() : main_loop_(Glib::MainLoop::create()), progress_thre
progress_threads_[i] = progress;
progress->signal_finished().connect(
- sigc::bind<1>(sigc::mem_fun(*this, &Application::on_progress_finished), progress));
+ sigc::bind(sigc::mem_fun(*this, &Application::on_progress_finished), progress));
}
}
catch (...)
diff --git a/examples/thread/threadpool.cc b/examples/thread/threadpool.cc
index 891c565d..885962bc 100644
--- a/examples/thread/threadpool.cc
+++ b/examples/thread/threadpool.cc
@@ -56,7 +56,7 @@ main(int, char**)
for (auto c = 'a'; c <= 'z'; ++c)
{
- pool.push(sigc::bind<1>(sigc::ptr_fun(&print_char), c));
+ pool.push(sigc::bind(sigc::ptr_fun(&print_char), c));
}
pool.shutdown();