mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02: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:
@@ -414,7 +414,7 @@ static void push_craft_recipe(lua_State *L, IGameDef *gdef,
|
||||
|
||||
lua_newtable(L); // items
|
||||
std::vector<ItemStack>::const_iterator iter = input.items.begin();
|
||||
for (u16 j = 1; iter != input.items.end(); iter++, j++) {
|
||||
for (u16 j = 1; iter != input.items.end(); ++iter, j++) {
|
||||
if (iter->empty())
|
||||
continue;
|
||||
lua_pushstring(L, iter->name.c_str());
|
||||
|
Reference in New Issue
Block a user