aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlcontext.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-27 19:57:46 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-06-28 14:56:22 +0200
commitde7d66ba0295eba73d509e671fdda69a9bef39a6 (patch)
treec4f3c5caa82ffebc9bc08a320497a1d87dbd9146 /src/qml/qml/qqmlcontext.cpp
parent7259642e35fc8a1d354697f8b1700cbadd540870 (diff)
Convert IdentifierHash to be template based
Make it a template based class, so we can store more then just integers here and replace more StringHash'es with it. Change-Id: I21442d13c6260f184bc7b63a8a58e826699f0c83 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcontext.cpp')
-rw-r--r--src/qml/qml/qqmlcontext.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlcontext.cpp b/src/qml/qml/qqmlcontext.cpp
index 684ac9e980..55cfbc0654 100644
--- a/src/qml/qml/qqmlcontext.cpp
+++ b/src/qml/qml/qqmlcontext.cpp
@@ -313,7 +313,7 @@ void QQmlContext::setContextProperty(const QString &name, const QVariant &value)
}
if (data->propertyNames.isEmpty())
- data->propertyNames = QV4::IdentifierIntHash(QV8Engine::getV4(engine()->handle()));
+ data->propertyNames = QV4::IdentifierHash<int>(QV8Engine::getV4(engine()->handle()));
int idx = data->propertyNames.value(name);
if (idx == -1) {
@@ -351,7 +351,7 @@ void QQmlContext::setContextProperty(const QString &name, QObject *value)
}
if (data->propertyNames.isEmpty())
- data->propertyNames = QV4::IdentifierIntHash(QV8Engine::getV4(engine()->handle()));
+ data->propertyNames = QV4::IdentifierHash<int>(QV8Engine::getV4(engine()->handle()));
int idx = data->propertyNames.value(name);
if (idx == -1) {
@@ -770,7 +770,7 @@ void QQmlContextData::setIdProperty(int idx, QObject *obj)
idValues[idx].context = this;
}
-void QQmlContextData::setIdPropertyData(const QV4::IdentifierIntHash &data)
+void QQmlContextData::setIdPropertyData(const QV4::IdentifierHash<int> &data)
{
Q_ASSERT(propertyNames.isEmpty());
propertyNames = data;