[Scummvm-cvs-logs] SF.net SVN: scummvm: [22828] scummvm/trunk/gui/theme-config.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Fri Jun 2 09:20:08 CEST 2006
Revision: 22828
Author: fingolfin
Date: 2006-06-02 00:20:04 -0700 (Fri, 02 Jun 2006)
ViewCVS: http://svn.sourceforge.net/scummvm/?rev=22828&view=rev
Log Message:
-----------
Optimize GUI string usage a tiny bit more
Modified Paths:
--------------
scummvm/trunk/gui/theme-config.cpp
Modified: scummvm/trunk/gui/theme-config.cpp
===================================================================
--- scummvm/trunk/gui/theme-config.cpp 2006-06-02 03:13:13 UTC (rev 22827)
+++ scummvm/trunk/gui/theme-config.cpp 2006-06-02 07:20:04 UTC (rev 22828)
@@ -414,14 +414,15 @@
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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list