diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2011-01-18 15:57:45 +0100 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2011-01-18 15:57:45 +0100 |
commit | 56bdba592cf336b2bd4241a2b8e331cd38a089e4 (patch) | |
tree | 3daf5193834a45b4dd94e874f7d7ee5c4b47c6dc /src/ctx.cpp | |
parent | b262f2fe9ba02a6d2749e286eaadc65d489600c9 (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.cpp | 6 |
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; } } |