mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-23 11:04:44 +00:00
ACCESS: Use clear to empty Common::String variables
This commit is contained in:
parent
207c4012ad
commit
79b51f20e4
@ -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…
x
Reference in New Issue
Block a user