- more code cleanup based on suggestions from cppcheck

This commit is contained in:
Mark Vejvoda
2012-10-18 08:16:47 +00:00
parent 829a72db35
commit e86cb3aeff
16 changed files with 63 additions and 56 deletions

View File

@@ -977,11 +977,11 @@ string LuaArguments::getStackText() const {
}
else if(lua_istable(luaState, -i)){
int tableLen = 0;
//int tableLen = 0;
#if LUA_VERSION_NUM > 501
tableLen = lua_rawlen(luaState, -i);
int tableLen = lua_rawlen(luaState, -i);
#else
tableLen = luaL_getn(luaState, -i);
int tableLen = luaL_getn(luaState, -i);
#endif
stackString+= "Table (" + intToStr(tableLen) + ")\n";
// for(unsigned int j = 1; j < tableLen; ++j) {