From eabca8769778a9d1fa58b320df8a31ea098305ab Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 2 Jun 2006 16:06:17 +0000 Subject: Optimize string usage a tiny bit more svn-id: r22839 --- gui/theme-config.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gui') 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); } -- cgit v1.2.3