diff options
Diffstat (limited to 'src/qml/qml/v8/qv8qobjectwrapper.cpp')
-rw-r--r-- | src/qml/qml/v8/qv8qobjectwrapper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/v8/qv8qobjectwrapper.cpp b/src/qml/qml/v8/qv8qobjectwrapper.cpp index e25b8b478b..86ae6a165a 100644 --- a/src/qml/qml/v8/qv8qobjectwrapper.cpp +++ b/src/qml/qml/v8/qv8qobjectwrapper.cpp @@ -961,7 +961,7 @@ v8::Handle<v8::Object> QQmlPropertyCache::newQObject(QObject *object, QV8Engine Q_ASSERT(QQmlData::get(object, false)->propertyCache == this); // Setup constructor - if (constructor->isEmpty()) { + if (constructor.isEmpty()) { v8::Handle<v8::FunctionTemplate> ft; const QHashedString toString(QStringLiteral("toString")); @@ -1050,7 +1050,7 @@ v8::Handle<v8::Object> QQmlPropertyCache::newQObject(QObject *object, QV8Engine QQmlCleanup::addToEngine(this->engine); } - v8::Handle<v8::Object> result = constructor->asFunctionObject()->newInstance(); + v8::Handle<v8::Object> result = constructor.value().asFunctionObject()->newInstance(); QV8QObjectResource *r = new QV8QObjectResource(engine, object); result->SetExternalResource(r); return result; |