aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/testtypes.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2012-06-13 12:10:18 +0200
committerQt by Nokia <qt-info@nokia.com>2012-06-20 17:22:31 +0200
commit58f3f50c43f021ebfe214062562498d02b6f2071 (patch)
tree17e02ef27ee8d0e76eaf25f800836121b4c9b85e /tests/auto/qml/qqmlecmascript/testtypes.cpp
parente884e15615dc97c95704835756680b9c38be29ea (diff)
Fix warnings in declarative tests.
- Unused variables and test data. - () around operator &&. - Conversion of false to 0-pointer where QVariant was intended. - Missing enumeration value. - Remove duplicated qqmlecmascript entry from qml.pro (has an internal check for no-widgets). Change-Id: Ie030167e22bce26e3988a4406c630fb460f61a3c Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/testtypes.cpp')
-rw-r--r--tests/auto/qml/qqmlecmascript/testtypes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlecmascript/testtypes.cpp b/tests/auto/qml/qqmlecmascript/testtypes.cpp
index f192cbc6c6..f488c6a14e 100644
--- a/tests/auto/qml/qqmlecmascript/testtypes.cpp
+++ b/tests/auto/qml/qqmlecmascript/testtypes.cpp
@@ -104,7 +104,7 @@ public:
void setWidth(int) { }
};
-void MyQmlObject::v8function(QQmlV8Function *args)
+void MyQmlObject::v8function(QQmlV8Function *)
{
const char *error = "Exception thrown from within QObject slot";
v8::ThrowException(v8::Exception::Error(v8::String::New(error)));