aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/declarative/qml/v8/qv8engine_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/v8/qv8engine_p.h b/src/declarative/qml/v8/qv8engine_p.h
index 7dc333630a..82d696909f 100644
--- a/src/declarative/qml/v8/qv8engine_p.h
+++ b/src/declarative/qml/v8/qv8engine_p.h
@@ -192,12 +192,13 @@ public:
QDeclarativeV8Handle &operator=(const QDeclarativeV8Handle &other) { d = other.d; return *this; }
static QDeclarativeV8Handle fromHandle(v8::Handle<v8::Value> h) {
- return reinterpret_cast<QDeclarativeV8Handle &>(h);
+ return QDeclarativeV8Handle(*h);
}
v8::Handle<v8::Value> toHandle() const {
return reinterpret_cast<const v8::Handle<v8::Value> &>(*this);
}
private:
+ QDeclarativeV8Handle(void *d) : d(d) {}
void *d;
};