summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlintegercache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlintegercache.cpp')
-rw-r--r--src/declarative/qml/qmlintegercache.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlintegercache.cpp b/src/declarative/qml/qmlintegercache.cpp
index 1bc4086..564faaa 100644
--- a/src/declarative/qml/qmlintegercache.cpp
+++ b/src/declarative/qml/qmlintegercache.cpp
@@ -62,9 +62,7 @@ void QmlIntegerCache::add(const QString &id, int value)
QmlEnginePrivate *enginePriv = QmlEnginePrivate::get(engine);
// ### use contextClass
- QScriptDeclarativeClass::PersistentIdentifier<Data> *d =
- enginePriv->objectClass->createPersistentIdentifier<Data>(id);
- d->value = value;
+ Data *d = new Data(enginePriv->objectClass->createPersistentIdentifier(id), value);
stringCache.insert(id, d);
identifierCache.insert(d->identifier, d);