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 e5253f3 commit 3208dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotkey/hotkey_command.cpp
Expand Up @@ -326,7 +326,7 @@ bool remove_wml_hotkey(const std::string& id)
else
{
LOG_G << "removing wml hotkey with id=" + id + "\n";
for(boost::ptr_vector<hotkey_command>::iterator itor = known_hotkeys.begin(); itor != known_hotkeys.end(); itor ++)
for(boost::ptr_vector<hotkey_command>::iterator itor = known_hotkeys.begin(); itor != known_hotkeys.end(); ++itor)
{
if(itor->command == id)
{
Expand Down

0 comments on commit 3208dd8

Please sign in to comment.