From b25298f0f85fe0832994a663d1ed8e6e3da21702 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 30 Oct 2016 16:00:04 +0100 Subject: [PATCH] Changed: std::string already empty --HG-- branch : develop --- code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp | 2 +- .../tools/client/r2_islands_textures/screenshot_islands.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp index 3d9aadea3..fb0d251f5 100644 --- a/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp +++ b/code/ryzom/client/src/interface_v3/lua_ihm_ryzom.cpp @@ -346,7 +346,7 @@ static CLuaString lstr_isNil("isNil"); void CLuaIHMRyzom::createLuaEnumTable(CLuaState &ls, const std::string &str) { //H_AUTO(Lua_CLuaIHM_createLuaEnumTable) - std::string path = "", script, p; + std::string path, script, p; CSString s = str; // Create table recursively (ex: 'game.TPVPClan' will check/create the table 'game' and 'game.TPVPClan') p = s.splitTo('.', true); diff --git a/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp b/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp index c166f3a14..db8481453 100644 --- a/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp +++ b/code/ryzom/tools/client/r2_islands_textures/screenshot_islands.cpp @@ -1158,7 +1158,7 @@ void CScreenshotIslands::loadIslands() TBuffer cleanBuffer; processProximityBuffer(zoneBuffer, zones[i].getZoneWidth(), cleanBuffer); - string fileName = string(""); + string fileName; list< string >::const_iterator itIsland(continent.Islands.begin()), lastIsland(continent.Islands.end()); for( ; itIsland != lastIsland ; ++itIsland) {