mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-26 02:40:54 +00:00
Changed: Use clear() instead of affectation
This commit is contained in:
parent
574405e5b5
commit
b07db1a990
5 changed files with 5 additions and 5 deletions
|
@ -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…
Reference in a new issue