mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-25 16:26:18 +00:00
Changed: Use clear() instead of affectation
This commit is contained in:
parent
3dd4661a53
commit
e752b52ec4
5 changed files with 5 additions and 5 deletions
|
@ -1430,7 +1430,7 @@ namespace NLGUI
|
||||||
// Append to the last line
|
// Append to the last line
|
||||||
_Lines.back()->addWord(ucCurrentWord, 0, wordFormat, _FontWidth, *TextContext);
|
_Lines.back()->addWord(ucCurrentWord, 0, wordFormat, _FontWidth, *TextContext);
|
||||||
// reset the word
|
// reset the word
|
||||||
ucCurrentWord = ucstring("");
|
ucCurrentWord.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1109,7 +1109,7 @@ void CI18N::_readTextFile(const string &filename,
|
||||||
temp.append(result.begin()+lastPos, result.end());
|
temp.append(result.begin()+lastPos, result.end());
|
||||||
result.swap(temp);
|
result.swap(temp);
|
||||||
|
|
||||||
temp = "";
|
temp.clear();
|
||||||
|
|
||||||
// second loop with the '\n'
|
// second loop with the '\n'
|
||||||
pos = 0;
|
pos = 0;
|
||||||
|
|
|
@ -38,7 +38,7 @@ void CTools::mkdir (const string &dirName)
|
||||||
}
|
}
|
||||||
SetCurrentDirectory (newDir.c_str());
|
SetCurrentDirectory (newDir.c_str());
|
||||||
// Create upper levels
|
// Create upper levels
|
||||||
newDir = "";
|
newDir.clear();
|
||||||
string::size_type pos = dirName.rfind('\\');
|
string::size_type pos = dirName.rfind('\\');
|
||||||
if (pos != string::npos)
|
if (pos != string::npos)
|
||||||
{
|
{
|
||||||
|
|
|
@ -86,7 +86,7 @@ sint main(sint argc, char **argv)
|
||||||
if (cmd != "")
|
if (cmd != "")
|
||||||
{
|
{
|
||||||
commands.push_back(cmd);
|
commands.push_back(cmd);
|
||||||
cmd = "";
|
cmd.clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -703,7 +703,7 @@ void cleanComment(const std::string & filename)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
text = newText;
|
text = newText;
|
||||||
newText = ucstring("");
|
newText.clear();
|
||||||
last = 0;
|
last = 0;
|
||||||
while ( last != ucstring::npos)
|
while ( last != ucstring::npos)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue