put the ++ in front instead

This commit is contained in:
Isaac Connor 2018-04-14 17:04:00 -04:00
parent 73239a0dba
commit 0428d8687d
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ ZMPacket *zm_packetqueue::get_analysis_packet() {
bool zm_packetqueue::increment_analysis_it( ) { bool zm_packetqueue::increment_analysis_it( ) {
// We do this instead of distance becuase distance will traverse the entire list in the worst case // We do this instead of distance becuase distance will traverse the entire list in the worst case
std::list<ZMPacket *>::iterator next_it = analysis_it; std::list<ZMPacket *>::iterator next_it = analysis_it;
next_it ++; ++ next_it;
if ( next_it == pktQueue.end() ) { if ( next_it == pktQueue.end() ) {
return false; return false;
} }