aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Signal.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/Signal.hh b/src/FbTk/Signal.hh
index df30cda..7ad4d00 100644
--- a/src/FbTk/Signal.hh
+++ b/src/FbTk/Signal.hh
@@ -203,7 +203,7 @@ public:
203 /// @return A tracking ID ( not unique ) 203 /// @return A tracking ID ( not unique )
204 template <typename Signal, typename Functor> 204 template <typename Signal, typename Functor>
205 TrackID join(Signal& sig, const Functor& functor) { 205 TrackID join(Signal& sig, const Functor& functor) {
206 ValueType value = std::make_pair(&sig, sig.connect(functor)); 206 ValueType value = ValueType(&sig, sig.connect(functor));
207 std::pair<TrackID, bool> ret = m_connections.insert(value); 207 std::pair<TrackID, bool> ret = m_connections.insert(value);
208 if ( !ret.second ) { 208 if ( !ret.second ) {
209 // failed to insert this functor 209 // failed to insert this functor