ACCESS: Use clear to empty Common::String variables

This commit is contained in:
Strangerke 2014-12-17 23:08:54 +01:00
parent 207c4012ad
commit 79b51f20e4
2 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ bool Font::getLine(Common::String &s, int maxWidth, Common::String &line, int &w
// If this was the last character of the string, let it go
if (*src == '\0') {
line = Common::String(s.c_str(), src);
s = "";
s.clear();
return true;
}

View File

@ -661,7 +661,7 @@ void Scripts::cmdTexChoice() {
findNull();
tmpStr = "";
tmpStr.clear();
while ((v = _data->readByte()) != 0)
tmpStr += (char)v;
@ -676,7 +676,7 @@ void Scripts::cmdTexChoice() {
findNull();
bool choice3Fl = false;
tmpStr = "";
tmpStr.clear();
while ((v = _data->readByte()) != 0)
tmpStr += (char)v;