From e086eca55e87cf56ed679bfa2b51bd5c83899b30 Mon Sep 17 00:00:00 2001 From: Janne Anttila Date: Mon, 31 Oct 2011 16:00:01 +0200 Subject: Fixed warning by MSVC about class/struct mismatch in MethodData. MSVC reported the following warning when compiling declarative module: 'MethodData' : type name first seen using 'class' now seen using 'struct' Fixed by changing the forward declaration from class to struct. Task-number: QTBUG-22512 Change-Id: I066feea80115d1d968332933d78e0408cd92a70a Reviewed-by: Andreas Holzammer Reviewed-by: Joerg Bornemann --- src/declarative/qml/qdeclarativeobjectscriptclass_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/declarative/qml/qdeclarativeobjectscriptclass_p.h b/src/declarative/qml/qdeclarativeobjectscriptclass_p.h index 6910960..6fda4cf 100644 --- a/src/declarative/qml/qdeclarativeobjectscriptclass_p.h +++ b/src/declarative/qml/qdeclarativeobjectscriptclass_p.h @@ -65,7 +65,7 @@ class QDeclarativeEngine; class QScriptContext; class QScriptEngine; class QDeclarativeContextData; -class MethodData; +struct MethodData; class Q_AUTOTEST_EXPORT QDeclarativeObjectMethodScriptClass : public QScriptDeclarativeClass { -- cgit v0.12