From c50d099bdbec05553fe3c2c5190c4c2fd8213f78 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 29 Jul 2011 12:27:40 +1000 Subject: [PATCH] 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 Reviewed-by: Martin Jones --- src/declarative/qml/v8/qv8engine_p.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/declarative/qml/v8/qv8engine_p.h b/src/declarative/qml/v8/qv8engine_p.h index 7dc3336..82d6969 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 h) { - return reinterpret_cast(h); + return QDeclarativeV8Handle(*h); } v8::Handle toHandle() const { return reinterpret_cast &>(*this); } private: + QDeclarativeV8Handle(void *d) : d(d) {} void *d; }; -- 2.7.4