Skip to content

Commit

Permalink
Pre instead of post increment a variable.
Browse files Browse the repository at this point in the history
Issue found by cppcheck.
  • Loading branch information
mordante committed Feb 9, 2014
1 parent 3208dd8 commit 6ba1495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/map/map_context.cpp
Expand Up @@ -420,7 +420,7 @@ config map_context::to_config()
labels_.write(scenario);

overlay_map::const_iterator it;
for (it = overlays_.begin(); it != overlays_.end(); it++) {
for (it = overlays_.begin(); it != overlays_.end(); ++it) {

config& item = scenario.add_child("item");
it->first.write(item);
Expand Down

0 comments on commit 6ba1495

Please sign in to comment.