aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlimport.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-25 21:53:06 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-28 14:55:55 +0200
commit4a3d5537dde71c57378da7e65e732d50f88e592a (patch)
tree066bd56f26a43b08478f17a5a10c716e5c6a811e /src/qml/qml/qqmlimport.cpp
parentdfbec73b35cc600be0614081a0ef280d53a1c79e (diff)
Remove an overoptimisation that was only used (wrongly) in one place
Let's simplify this code. The goal is to replace most of the code in qhashedstring with an identifier based hash table. Change-Id: I2f9a38ad0bb2f43a2b2b87914823c23ed231f48c Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlimport.cpp')
-rw-r--r--src/qml/qml/qqmlimport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp
index 50b2c8af0d..816f9cec0f 100644
--- a/src/qml/qml/qqmlimport.cpp
+++ b/src/qml/qml/qqmlimport.cpp
@@ -136,7 +136,7 @@ QQmlType *getTypeForUrl(const QString &urlString, const QHashedStringRef& typeNa
QHashedStringRef unqualifiedtype = dot < 0 ? typeName : QHashedStringRef(typeName.constData() + dot + 1, typeName.length() - dot - 1);
//XXX: The constData of the string ref is pointing somewhere unsafe in qmlregister, so we need to create a temporary copy
- QByteArray buf(unqualifiedtype.toUtf8().constData());
+ QByteArray buf(unqualifiedtype.toString().toUtf8());
QQmlPrivate::RegisterCompositeType reg = {
url,