Author: mordante
Date: Sun Jul 31 18:56:31 2011
New Revision: 50515
URL: http://svn.gna.org/viewcvs/wesnoth?rev=50515&view=rev
Log:
Pre instead of post increment a variable.
Issue found by cppcheck.
Modified:
trunk/src/persist_context.hpp
Modified: trunk/src/persist_context.hpp
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/src/persist_context.hpp?rev=50515&r1=50514&r2=50515&view=diff
==============================================================================
--- trunk/src/persist_context.hpp (original)
+++ trunk/src/persist_context.hpp Sun Jul 31 18:56:31 2011
@@ -152,7 +152,7 @@
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();
}
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits