summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2010-02-07 16:24:14 +0100
committerMartin Sustrik <sustrik@250bpm.com>2010-02-07 16:24:14 +0100
commit427bc3276aa236c8691fee7e634717d0579a3055 (patch)
tree074ebf14fe6d0d9a2ce4c5df9bfae624b79d92c7
parentb0ee6b0c8ab8a5052a5e111dda24308dd00c0d62 (diff)
minor code cleanup
-rw-r--r--src/socket_base.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socket_base.cpp b/src/socket_base.cpp
index d35c8c0..2eac84b 100644
--- a/src/socket_base.cpp
+++ b/src/socket_base.cpp
@@ -494,7 +494,7 @@ uint64_t zmq::socket_base_t::register_session (session_t *session_)
sessions_sync.lock ();
uint64_t ordinal = next_ordinal;
next_ordinal++;
- unnamed_sessions.insert (std::make_pair (ordinal, session_)).second;
+ unnamed_sessions.insert (std::make_pair (ordinal, session_));
sessions_sync.unlock ();
return ordinal;
}