Changed: std::string already empty

This commit is contained in:
kervala 2016-10-30 16:00:04 +01:00
parent d84b5f9bf4
commit 735228f7ca
2 changed files with 2 additions and 2 deletions

View file

@ -346,7 +346,7 @@ static CLuaString lstr_isNil("isNil");
void CLuaIHMRyzom::createLuaEnumTable(CLuaState &ls, const std::string &str) void CLuaIHMRyzom::createLuaEnumTable(CLuaState &ls, const std::string &str)
{ {
//H_AUTO(Lua_CLuaIHM_createLuaEnumTable) //H_AUTO(Lua_CLuaIHM_createLuaEnumTable)
std::string path = "", script, p; std::string path, script, p;
CSString s = str; CSString s = str;
// Create table recursively (ex: 'game.TPVPClan' will check/create the table 'game' and 'game.TPVPClan') // Create table recursively (ex: 'game.TPVPClan' will check/create the table 'game' and 'game.TPVPClan')
p = s.splitTo('.', true); p = s.splitTo('.', true);

View file

@ -1158,7 +1158,7 @@ void CScreenshotIslands::loadIslands()
TBuffer cleanBuffer; TBuffer cleanBuffer;
processProximityBuffer(zoneBuffer, zones[i].getZoneWidth(), cleanBuffer); processProximityBuffer(zoneBuffer, zones[i].getZoneWidth(), cleanBuffer);
string fileName = string(""); string fileName;
list< string >::const_iterator itIsland(continent.Islands.begin()), lastIsland(continent.Islands.end()); list< string >::const_iterator itIsland(continent.Islands.begin()), lastIsland(continent.Islands.end());
for( ; itIsland != lastIsland ; ++itIsland) for( ; itIsland != lastIsland ; ++itIsland)
{ {