summaryrefslogtreecommitdiffstats
path: root/src/declarative/util
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-04-28 04:43:56 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-04-28 04:43:56 (GMT)
commit2489ac6515d6ae5a403974e151b9a6cba4a3ea3f (patch)
tree5cb78801206cd893d74563c5bb1e8b03cf865214 /src/declarative/util
parent57a76a94e5b60c5c7c82ec86bea4f206f6f08f4e (diff)
downloadQt-2489ac6515d6ae5a403974e151b9a6cba4a3ea3f.zip
Qt-2489ac6515d6ae5a403974e151b9a6cba4a3ea3f.tar.gz
Qt-2489ac6515d6ae5a403974e151b9a6cba4a3ea3f.tar.bz2
Don't unnecessarily regenerate property cache
Improves compilation:boomblock benchmark by 22%
Diffstat (limited to 'src/declarative/util')
-rw-r--r--src/declarative/util/qdeclarativeopenmetaobject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativeopenmetaobject.cpp b/src/declarative/util/qdeclarativeopenmetaobject.cpp
index 0e5aaa6..ba5d534 100644
--- a/src/declarative/util/qdeclarativeopenmetaobject.cpp
+++ b/src/declarative/util/qdeclarativeopenmetaobject.cpp
@@ -305,7 +305,7 @@ void QDeclarativeOpenMetaObject::setCached(bool c)
QDeclarativeData *qmldata = QDeclarativeData::get(d->object, true);
if (d->cacheProperties) {
if (!d->type->d->cache)
- d->type->d->cache = QDeclarativePropertyCache::create(d->type->d->engine, this);
+ d->type->d->cache = new QDeclarativePropertyCache(d->type->d->engine, this);
qmldata->propertyCache = d->type->d->cache;
d->type->d->cache->addref();
} else {