Pre instead of post increment a variable.

Issue found by cppcheck.
This commit is contained in:
Mark de Wever 2011-07-31 16:56:31 +00:00
parent b6fa0e180a
commit 5c6b51a6e1

View File

@ -152,7 +152,7 @@ protected:
else return *this;
}
void init () {
for (config::all_children_iterator i = cfg_.ordered_begin(); i != cfg_.ordered_end(); i++) {
for (config::all_children_iterator i = cfg_.ordered_begin(); i != cfg_.ordered_end(); ++i) {
if (i->key != "variables") {
child(i->key).init();
}