diff options
author | Murray Cumming <murrayc@murrayc.com> | 2016-03-31 12:15:53 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2016-03-31 12:16:32 +0200 |
commit | a1740f7fe821c0a376005aa512fc8bbca4a6b1c3 (patch) | |
tree | bdb0c8efd6e16c27f44737308ddd7e28f32fba91 /tests | |
parent | bd184b3d2204b5a3790046f090f427da12c2e793 (diff) | |
download | glibmm-a1740f7fe821c0a376005aa512fc8bbca4a6b1c3.tar.gz |
Examples: Use libsigc++ 2.9/10 and its slot/signal<R(Args...)> syntax.
The older libsigc++ syntax is deprecated.
Diffstat (limited to 'tests')
-rw-r--r-- | 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 826b915e..0ca5b94a 100644 --- a/tests/glibmm_refptr_sigc_bind/main.cc +++ b/tests/glibmm_refptr_sigc_bind/main.cc @@ -22,10 +22,10 @@ public: void emit_sig1(int n) { sig1.emit(n); } - sigc::signal<void, int>& signal_sig1() { return sig1; } + sigc::signal<void(int)>& signal_sig1() { return sig1; } private: - sigc::signal<void, int> sig1; + sigc::signal<void(int)> sig1; int ref_count; }; |