summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_client.cpp
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2017-04-25 10:17:53 +0200
committerLoïc Blot <loic.blot@unix-experience.fr>2017-04-25 10:21:42 +0200
commita7e131f53e211ffbe38d34d23b33e13cc401f013 (patch)
treec615160a94df851752d62bfc2a4cf9f4d01f63ab /src/script/lua_api/l_client.cpp
parentaf9630962134346750f12c9f1856eae00e0dfe02 (diff)
downloadminetest-a7e131f53e211ffbe38d34d23b33e13cc401f013.tar.gz
minetest-a7e131f53e211ffbe38d34d23b33e13cc401f013.tar.bz2
minetest-a7e131f53e211ffbe38d34d23b33e13cc401f013.zip
Fix various points reported by cppcheck (#5656)
* Fix various performance issues reported by cppcheck + code style (CI) * Make CI happy with code style on master * guiFileSelectMenu: remove useless includes * some performance fixes pointed by cppcheck * remove some useless casts * TextDest: remove unused setFormSpec function * Fix various iterator post-increment reported by cppcheck
Diffstat (limited to 'src/script/lua_api/l_client.cpp')
-rw-r--r--src/script/lua_api/l_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_client.cpp b/src/script/lua_api/l_client.cpp
index be3a749de..09ea5506b 100644
--- a/src/script/lua_api/l_client.cpp
+++ b/src/script/lua_api/l_client.cpp
@@ -83,7 +83,7 @@ int ModApiClient::l_get_player_names(lua_State *L)
int newTable = lua_gettop(L);
int index = 1;
std::list<std::string>::const_iterator iter;
- for (iter = plist.begin(); iter != plist.end(); iter++) {
+ for (iter = plist.begin(); iter != plist.end(); ++iter) {
lua_pushstring(L, (*iter).c_str());
lua_rawseti(L, newTable, index);
index++;