From de7d66ba0295eba73d509e671fdda69a9bef39a6 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 27 Jun 2013 19:57:46 +0200 Subject: 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 --- src/qml/qml/qqmlcontext.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qml/qml/qqmlcontext.cpp') 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(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(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 &data) { Q_ASSERT(propertyNames.isEmpty()); propertyNames = data; -- cgit v1.2.3