aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorStrangerke2014-12-17 23:08:54 +0100
committerStrangerke2014-12-17 23:08:54 +0100
commit79b51f20e48f9f93a519f548ba42afdcb8a03899 (patch)
treee43ed04690fe15ad94bdd0afc917ed7cc329b6bb /engines
parent207c4012ad33f7f11b5375c1478ed2f5e13679b9 (diff)
downloadscummvm-rg350-79b51f20e48f9f93a519f548ba42afdcb8a03899.tar.gz
scummvm-rg350-79b51f20e48f9f93a519f548ba42afdcb8a03899.tar.bz2
scummvm-rg350-79b51f20e48f9f93a519f548ba42afdcb8a03899.zip
ACCESS: Use clear to empty Common::String variables
Diffstat (limited to 'engines')
-rw-r--r--engines/access/font.cpp2
-rw-r--r--engines/access/scripts.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/access/font.cpp b/engines/access/font.cpp
index 3ff1b7e679..da8f0b6ec5 100644
--- a/engines/access/font.cpp
+++ b/engines/access/font.cpp
@@ -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;
}
diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp
index 79d74694a1..59d89af2f2 100644
--- a/engines/access/scripts.cpp
+++ b/engines/access/scripts.cpp
@@ -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;