ACCESS: Use clear to empty Common::String variables
This commit is contained in:
parent
207c4012ad
commit
79b51f20e4
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue