aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
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;