diff options
author | Eugene Sandulenko | 2006-06-02 16:06:17 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-06-02 16:06:17 +0000 |
commit | eabca8769778a9d1fa58b320df8a31ea098305ab (patch) | |
tree | 81bf6ec81b17bc797530b7fcb3d48a4669c39a9c /gui | |
parent | 3348c32de037919e749923897f54de379a9636da (diff) | |
download | scummvm-rg350-eabca8769778a9d1fa58b320df8a31ea098305ab.tar.gz scummvm-rg350-eabca8769778a9d1fa58b320df8a31ea098305ab.tar.bz2 scummvm-rg350-eabca8769778a9d1fa58b320df8a31ea098305ab.zip |
Optimize string usage a tiny bit more
svn-id: r22839
Diffstat (limited to 'gui')
-rw-r--r-- | gui/theme-config.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gui/theme-config.cpp b/gui/theme-config.cpp index 138735ed15..baa44992fb 100644 --- a/gui/theme-config.cpp +++ b/gui/theme-config.cpp @@ -412,19 +412,18 @@ void Theme::processSingleLine(const String §ion, const String prefix, const int start = 0; uint i; int value; + const char *selfpostfixes[] = {"self.x", "self.y", "self.w", "self.h"}; const char *postfixes[] = {".x", ".y", ".w", ".h"}; int npostfix = 0; const String prefixedname(prefix + name); // Make self.BLAH work for (i = 0; i < ARRAYSIZE(postfixes); i++) { - String from("self"); String to(prefixedname); - from += postfixes[i]; to += postfixes[i]; - _evaluator->setAlias(from, to); + _evaluator->setAlias(selfpostfixes[i], to); _evaluator->setVar(to, EVAL_UNDEF_VAR); } |