aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlpropertycache_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-05-06 12:43:39 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-06 15:53:54 +0200
commit5694ac5bbed19b4a427a29fcd9bcacba480165c1 (patch)
treeda0eb3dd87b1bb2d3ea3adfb60e57d4c14f13b7a /src/qml/qml/qqmlpropertycache_p.h
parent9a8dad0fcb2c3f6c7cf6fe1e8b38a18e1d90fd90 (diff)
Convert QQmlPropertyCache to use QV4::persistentValue instead of the v8 version
The V4 persistent values are safer to use, as the v8 ones never implemented proper semantics when the engine gets deleted. Change-Id: I787f8c01c70828f22ac60f0ac25201cdfa5a617f Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlpropertycache_p.h')
-rw-r--r--src/qml/qml/qqmlpropertycache_p.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlpropertycache_p.h b/src/qml/qml/qqmlpropertycache_p.h
index 960f3e55d8..c1c7cc236f 100644
--- a/src/qml/qml/qqmlpropertycache_p.h
+++ b/src/qml/qml/qqmlpropertycache_p.h
@@ -62,6 +62,8 @@
#include <QtCore/qvarlengtharray.h>
#include <QtCore/qvector.h>
+#include <private/qv4value_p.h>
+
QT_BEGIN_NAMESPACE
class QV8Engine;
@@ -390,7 +392,7 @@ private:
IndexCache signalHandlerIndexCache;
StringCache stringCache;
AllowedRevisionCache allowedRevisionCache;
- v8::Persistent<v8::Function> constructor;
+ QV4::PersistentValue constructor;
bool _hasPropertyOverrides : 1;
bool _ownMetaObject : 1;