From dfa41c837f11c92b47ebbda23e0aaaf96c0b7a79 Mon Sep 17 00:00:00 2001 From: Mark de Wever Date: Fri, 2 Oct 2009 19:28:14 +0000 Subject: [PATCH] Post instead of pre increment a variable. Issue found by cppcheck. --- src/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.cpp b/src/config.cpp index 45fa2a13e44..6e285eca2b6 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -838,7 +838,7 @@ bool config::matches(const config &filter) const if(!found) return false; } child_list negative_children = filter.get_children("not"); - for(child_list::iterator j3 = negative_children.begin() ; j3 != negative_children.end() ; j3++) { + for(child_list::iterator j3 = negative_children.begin() ; j3 != negative_children.end() ; ++j3) { if(matches(**j3)) return false; } return true;