Task-number: QTBUG-19736 QTBUG-19693
Change-Id: I1fd1a3146aa7be933f60917a562211142c2460bc
Reviewed-on: http://codereview.qt.nokia.com/2360
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
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;
};