aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2006-06-02 07:20:04 +0000
committerMax Horn2006-06-02 07:20:04 +0000
commit9686e5a3beca94ab29f19fb76e3f25d22cad0f61 (patch)
treeb72ac6eadad4add580c6feb467ea9c463fb3828c
parent4c2a08a91ac1596935907104c122306f55318eb3 (diff)
downloadscummvm-rg350-9686e5a3beca94ab29f19fb76e3f25d22cad0f61.tar.gz
scummvm-rg350-9686e5a3beca94ab29f19fb76e3f25d22cad0f61.tar.bz2
scummvm-rg350-9686e5a3beca94ab29f19fb76e3f25d22cad0f61.zip
Optimize GUI string usage a tiny bit more
svn-id: r22828
-rw-r--r--gui/theme-config.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/theme-config.cpp b/gui/theme-config.cpp
index 1d99171e8a..138735ed15 100644
--- a/gui/theme-config.cpp
+++ b/gui/theme-config.cpp
@@ -414,14 +414,15 @@ void Theme::processSingleLine(const String &section, const String prefix, const
int value;
const char *postfixes[] = {".x", ".y", ".w", ".h"};
int npostfix = 0;
- String prefixedname(prefix + name);
+ const String prefixedname(prefix + name);
// Make self.BLAH work
for (i = 0; i < ARRAYSIZE(postfixes); i++) {
- String from, to;
+ String from("self");
+ String to(prefixedname);
- from = String("self") + postfixes[i];
- to = prefixedname + postfixes[i];
+ from += postfixes[i];
+ to += postfixes[i];
_evaluator->setAlias(from, to);
_evaluator->setVar(to, EVAL_UNDEF_VAR);