summaryrefslogtreecommitdiff
path: root/src/ctx.cpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-01-18 15:57:45 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-01-18 15:57:45 +0100
commit56bdba592cf336b2bd4241a2b8e331cd38a089e4 (patch)
tree3daf5193834a45b4dd94e874f7d7ee5c4b47c6dc /src/ctx.cpp
parentb262f2fe9ba02a6d2749e286eaadc65d489600c9 (diff)
Fix cppcheck warnings: Prefer prefix ++/-- operators for non-primitive types.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/ctx.cpp')
-rw-r--r--src/ctx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ctx.cpp b/src/ctx.cpp
index 3849497..858d91e 100644
--- a/src/ctx.cpp
+++ b/src/ctx.cpp
@@ -266,11 +266,11 @@ void zmq::ctx_t::unregister_endpoints (socket_base_t *socket_)
while (it != endpoints.end ()) {
if (it->second.socket == socket_) {
endpoints_t::iterator to_erase = it;
- it++;
+ ++it;
endpoints.erase (to_erase);
continue;
}
- it++;
+ ++it;
}
endpoints_sync.unlock ();
@@ -327,7 +327,7 @@ void zmq::ctx_t::dezombify ()
slots [tid] = NULL;
}
else
- it++;
+ ++it;
}
}