From 79b51f20e48f9f93a519f548ba42afdcb8a03899 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Wed, 17 Dec 2014 23:08:54 +0100 Subject: ACCESS: Use clear to empty Common::String variables --- engines/access/font.cpp | 2 +- engines/access/scripts.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') 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; -- cgit v1.2.3