From: Remi Gacogne Date: Tue, 27 Mar 2018 12:21:52 +0000 (+0200) Subject: Use pre-increment instead of post-increment for non-primitive types X-Git-Tag: dnsdist-1.3.0~7^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b5da564b0e95906b0eb4c62fe7845c35861ed77;p=pdns Use pre-increment instead of post-increment for non-primitive types --- diff --git a/pdns/misc.hh b/pdns/misc.hh index df35e855d..bdc535b3a 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -378,7 +378,7 @@ struct CIStringComparePOSIX while(a!=lhs.end()) { if (b==rhs.end() || std::tolower(*b,loc)first==fd) // trying to remove us! - d_iter++; + ++d_iter; if(!cbmap.erase(fd)) throw FDMultiplexerException("Tried to remove unlisted fd "+std::to_string(fd)+ " from multiplexer"); diff --git a/pdns/statnode.cc b/pdns/statnode.cc index 2d40f582a..1557bbbd6 100644 --- a/pdns/statnode.cc +++ b/pdns/statnode.cc @@ -112,7 +112,7 @@ void StatNode::submit(std::vector::const_iterator end, std::vector