mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-27 11:06:52 +01:00
Fix V803 Decreased performance. In case 'it' is iterator it's more effective to use prefix form of increment.
Replace iterator++ with ++iterator. stream_engine.cpp
http://www.viva64.com/en/d/0165/print/
This commit is contained in:
@@ -781,7 +781,7 @@ void zmq::stream_engine_t::mechanism_ready ()
|
|||||||
it = zap_properties.begin ();
|
it = zap_properties.begin ();
|
||||||
while (it != zap_properties.end ()) {
|
while (it != zap_properties.end ()) {
|
||||||
properties.insert (properties_t::value_type (it->first, it->second));
|
properties.insert (properties_t::value_type (it->first, it->second));
|
||||||
it++;
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add ZMTP properties.
|
// Add ZMTP properties.
|
||||||
@@ -789,7 +789,7 @@ void zmq::stream_engine_t::mechanism_ready ()
|
|||||||
it = zmtp_properties.begin ();
|
it = zmtp_properties.begin ();
|
||||||
while (it != zmtp_properties.end ()) {
|
while (it != zmtp_properties.end ()) {
|
||||||
properties.insert (properties_t::value_type (it->first, it->second));
|
properties.insert (properties_t::value_type (it->first, it->second));
|
||||||
it++;
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
zmq_assert (metadata == NULL);
|
zmq_assert (metadata == NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user