Author: mordante
Date: Sun Jul 31 18:56:33 2011
New Revision: 50516

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50516&view=rev
Log:
Pre instead of post increment a variable.

Issue found by cppcheck.

Modified:
    trunk/src/storyscreen/controller.cpp

Modified: trunk/src/storyscreen/controller.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/storyscreen/controller.cpp?rev=50516&r1=50515&r2=50516&view=diff
==============================================================================
--- trunk/src/storyscreen/controller.cpp (original)
+++ trunk/src/storyscreen/controller.cpp Sun Jul 31 18:56:33 2011
@@ -59,7 +59,7 @@
 
 void controller::resolve_wml(const vconfig& cfg)
 {
-       for(vconfig::all_children_iterator i = cfg.ordered_begin(); i != 
cfg.ordered_end(); i++)
+       for(vconfig::all_children_iterator i = cfg.ordered_begin(); i != 
cfg.ordered_end(); ++i)
        {
                // i->first and i->second are goddamn temporaries; do not make 
references
                const std::string key = i->first;


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to