mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
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
This commit is contained in:
parent
af96309621
commit
a7e131f53e
13 changed files with 29 additions and 31 deletions
|
@ -297,7 +297,7 @@ int ModApiMainMenu::l_get_games(lua_State *L)
|
|||
int table2 = lua_gettop(L);
|
||||
int internal_index=1;
|
||||
for (std::set<std::string>::iterator iter = games[i].addon_mods_paths.begin();
|
||||
iter != games[i].addon_mods_paths.end(); iter++) {
|
||||
iter != games[i].addon_mods_paths.end(); ++iter) {
|
||||
lua_pushnumber(L,internal_index);
|
||||
lua_pushstring(L,(*iter).c_str());
|
||||
lua_settable(L, table2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue