summaryrefslogtreecommitdiff
path: root/src/xrep.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/xrep.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/xrep.cpp')
-rw-r--r--src/xrep.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xrep.cpp b/src/xrep.cpp
index f6f8090..9c985c0 100644
--- a/src/xrep.cpp
+++ b/src/xrep.cpp
@@ -87,10 +87,10 @@ void zmq::xrep_t::process_term (int linger_)
register_term_acks (inpipes.size () + outpipes.size ());
for (inpipes_t::iterator it = inpipes.begin (); it != inpipes.end ();
- it++)
+ ++it)
it->reader->terminate ();
for (outpipes_t::iterator it = outpipes.begin (); it != outpipes.end ();
- it++)
+ ++it)
it->second.writer->terminate ();
socket_base_t::process_term (linger_);
@@ -99,7 +99,7 @@ void zmq::xrep_t::process_term (int linger_)
void zmq::xrep_t::terminated (reader_t *pipe_)
{
for (inpipes_t::iterator it = inpipes.begin (); it != inpipes.end ();
- it++) {
+ ++it) {
if (it->reader == pipe_) {
inpipes.erase (it);
if (terminating)
@@ -135,7 +135,7 @@ void zmq::xrep_t::delimited (reader_t *pipe_)
void zmq::xrep_t::activated (reader_t *pipe_)
{
for (inpipes_t::iterator it = inpipes.begin (); it != inpipes.end ();
- it++) {
+ ++it) {
if (it->reader == pipe_) {
zmq_assert (!it->active);
it->active = true;