summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorAndreas Kling <andreas.kling@nokia.com>2011-03-22 15:22:34 (GMT)
committerAndreas Kling <andreas.kling@nokia.com>2011-03-23 14:16:57 (GMT)
commitb10199ab328848e954c3701f745043ff697a2c27 (patch)
tree6d06b7dc01b072d8a6199931d12585209c9246c8 /qmake
parent53b85aa13d30b84a69c326617d78b6d3ddeee15c (diff)
downloadQt-b10199ab328848e954c3701f745043ff697a2c27.zip
Qt-b10199ab328848e954c3701f745043ff697a2c27.tar.gz
Qt-b10199ab328848e954c3701f745043ff697a2c27.tar.bz2
ReplaceExtraCompilerCacheKey: Don't recreate "::" QString on each call.
Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/makefile.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/qmake/generators/makefile.cpp b/qmake/generators/makefile.cpp
index 7963976..9e2be31 100644
--- a/qmake/generators/makefile.cpp
+++ b/qmake/generators/makefile.cpp
@@ -1485,18 +1485,20 @@ MakefileGenerator::createObjectList(const QStringList &sources)
ReplaceExtraCompilerCacheKey::ReplaceExtraCompilerCacheKey(const QString &v, const QStringList &i, const QStringList &o)
{
+ static QString doubleColon = QLatin1String("::");
+
hash = 0;
pwd = qmake_getpwd();
var = v;
{
QStringList il = i;
il.sort();
- in = il.join("::");
+ in = il.join(doubleColon);
}
{
QStringList ol = o;
ol.sort();
- out = ol.join("::");
+ out = ol.join(doubleColon);
}
}