Changed: Use clear() instead of affectation

This commit is contained in:
kervala 2016-10-30 15:56:41 +01:00
parent 3dd4661a53
commit e752b52ec4
5 changed files with 5 additions and 5 deletions

View file

@ -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();
}

View file

@ -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;

View file

@ -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)
{

View file

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

View file

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