diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-05-08 07:32:45 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-05-08 11:58:59 +0200 |
commit | 9712236e07667c453cc88b45830bb692415c57ae (patch) | |
tree | 83ffee3f798e19e82b04a5b16145206d5c63c8b2 /src/qml/qml/v8/qv8sequencewrapper_p.h | |
parent | dc88c92f7beaa4bf4252e5dc4d18e328c7b9e165 (diff) |
convert qv8sequencewrapper to use QV4::PersistentValue
Change-Id: I211121a1cd389e7973ca1395e46c8f96f73d3a50
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/v8/qv8sequencewrapper_p.h')
-rw-r--r-- | src/qml/qml/v8/qv8sequencewrapper_p.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/qml/qml/v8/qv8sequencewrapper_p.h b/src/qml/qml/v8/qv8sequencewrapper_p.h index 2408e4a2ae..b5cc721f4a 100644 --- a/src/qml/qml/v8/qv8sequencewrapper_p.h +++ b/src/qml/qml/v8/qv8sequencewrapper_p.h @@ -57,6 +57,8 @@ #include <QtCore/qvariant.h> #include <private/qv8_p.h> +#include <private/qv4value_p.h> + QT_BEGIN_NAMESPACE class QV8Engine; @@ -85,12 +87,12 @@ public: private: QV8Engine *m_engine; - v8::Persistent<v8::Function> m_constructor; - v8::Persistent<v8::Function> m_toString; - v8::Persistent<v8::Function> m_valueOf; - v8::Persistent<v8::Function> m_sort; - v8::Persistent<v8::Value> m_arrayPrototype; - v8::Persistent<v8::Function> m_defaultSortComparer; + QV4::PersistentValue m_constructor; + QV4::PersistentValue m_toString; + QV4::PersistentValue m_valueOf; + QV4::PersistentValue m_sort; + QV4::PersistentValue m_arrayPrototype; + QV4::PersistentValue m_defaultSortComparer; static v8::Handle<v8::Value> IndexedGetter(quint32 index, const v8::AccessorInfo &info); static v8::Handle<v8::Value> IndexedSetter(quint32 index, v8::Handle<v8::Value> value, const v8::AccessorInfo &info); |