summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJędrzej Nowacki <jedrzej.nowacki@digia.com>2014-07-30 10:58:01 +0200
committerJędrzej Nowacki <jedrzej.nowacki@digia.com>2014-07-31 08:49:41 +0200
commitb80c449c2d1fcb63ad8726f79eccec4da8bbccf6 (patch)
treed7151e894f7e0520b42d7a62345bf14cddfd0e2a
parentac38fa541b9ebbfee63cea3cc49f22507666a64f (diff)
Micro-optimize uic
Avoid redundant QStringRef to QString conversion. Change-Id: I93c4f19798e81515f483371f0cc6fcccc7fe36c7 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
-rw-r--r--src/tools/uic/uic.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/uic/uic.cpp b/src/tools/uic/uic.cpp
index be4df64696..4c92d2ba18 100644
--- a/src/tools/uic/uic.cpp
+++ b/src/tools/uic/uic.cpp
@@ -147,7 +147,7 @@ static double versionFromUiAttribute(QXmlStreamReader &reader)
const QString versionAttribute = QLatin1String("version");
if (!attributes.hasAttribute(versionAttribute))
return 4.0;
- const QString version = attributes.value(versionAttribute).toString();
+ const QStringRef version = attributes.value(versionAttribute);
return version.toDouble();
}