Declare QQmlV8Handle as a metatype where it is defined.
authorStephen Kelly <stephen.kelly@kdab.com>
Tue, 4 Dec 2012 13:13:14 +0000 (14:13 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 4 Dec 2012 15:14:13 +0000 (16:14 +0100)
Instead of in multiple different TUs, therefore causing ODR violations.

Change-Id: Iefc5f3486961b91dd4e97a462f72570ff49bfd1b
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
src/qml/qml/qqmlboundsignal.cpp
src/qml/qml/qqmlpropertycache.cpp
src/qml/qml/v8/qv8engine_p.h
src/qml/qml/v8/qv8qobjectwrapper.cpp

index 234dee2..276013e 100644 (file)
@@ -58,8 +58,6 @@
 #include <QtCore/qstringbuilder.h>
 #include <QtCore/qdebug.h>
 
-Q_DECLARE_METATYPE(QQmlV8Handle)
-
 QT_BEGIN_NAMESPACE
 
 static QQmlJavaScriptExpression::VTable QQmlBoundSignalExpression_jsvtable = {
index 8b02385..fd3fc4a 100644 (file)
@@ -62,7 +62,6 @@
 #endif
 
 Q_DECLARE_METATYPE(QJSValue)
-Q_DECLARE_METATYPE(QQmlV8Handle);
 
 QT_BEGIN_NAMESPACE
 
index 12b0f4b..75e4344 100644 (file)
@@ -642,4 +642,6 @@ QV8Engine::Deletable *QV8Engine::extensionData(int index) const
 
 QT_END_NAMESPACE
 
+Q_DECLARE_METATYPE(QQmlV8Handle)
+
 #endif // QQMLV8ENGINE_P_H
index fa81838..60b81e0 100644 (file)
@@ -63,7 +63,6 @@
 #include <QtCore/qatomic.h>
 
 Q_DECLARE_METATYPE(QJSValue);
-Q_DECLARE_METATYPE(QQmlV8Handle);
 
 QT_BEGIN_NAMESPACE