aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-07-29 12:27:40 +1000
committerQt by Nokia <qt-info@nokia.com>2011-07-29 05:28:25 +0200
commitc50d099bdbec05553fe3c2c5190c4c2fd8213f78 (patch)
tree3a6e9d5f8fb2040072ea3c9461c6b94c2ac5c613 /src/declarative
parent4a9c50b9c119dc47cf35a4e96a007ce4dd3825e2 (diff)
Fix alias warnings in QDeclarativeV8Handle
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>
Diffstat (limited to 'src/declarative')
-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;
};