From 9686e5a3beca94ab29f19fb76e3f25d22cad0f61 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 2 Jun 2006 07:20:04 +0000 Subject: Optimize GUI string usage a tiny bit more svn-id: r22828 --- gui/theme-config.cpp | 9 +++++---- 1 file 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 §ion, 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); -- cgit v1.2.3