Changed: Use clear() instead of affectation

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 2fe0e84096
commit e3c2cb2a30

@ -1430,7 +1430,7 @@ namespace NLGUI
// Append to the last line
_Lines.back()->addWord(ucCurrentWord, 0, wordFormat, _FontWidth, *TextContext);
// reset the word
ucCurrentWord = ucstring("");
ucCurrentWord.clear();
}

@ -1109,7 +1109,7 @@ void CI18N::_readTextFile(const string &filename,
temp.append(result.begin()+lastPos, result.end());
result.swap(temp);
temp = "";
temp.clear();
// second loop with the '\n'
pos = 0;

@ -38,7 +38,7 @@ void CTools::mkdir (const string &dirName)
}
SetCurrentDirectory (newDir.c_str());
// Create upper levels
newDir = "";
newDir.clear();
string::size_type pos = dirName.rfind('\\');
if (pos != string::npos)
{

@ -86,7 +86,7 @@ sint main(sint argc, char **argv)
if (cmd != "")
{
commands.push_back(cmd);
cmd = "";
cmd.clear();
}
}
else

@ -703,7 +703,7 @@ void cleanComment(const std::string & filename)
}
}
text = newText;
newText = ucstring("");
newText.clear();
last = 0;
while ( last != ucstring::npos)
{

Loading…
Cancel
Save