diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-10-26 05:47:12 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-10-26 05:48:03 (GMT) |
commit | ee0c9c7003dc020113886070b5c04dc0a7529bf4 (patch) | |
tree | 4bcb10b46991161a59a784db65c13b9dfe34ce0a /src/declarative/qml/qmlglobalscriptclass.cpp | |
parent | 7eddab2dc75c79b05d86e2e4b48ac9f4cf102406 (diff) | |
download | Qt-ee0c9c7003dc020113886070b5c04dc0a7529bf4.zip Qt-ee0c9c7003dc020113886070b5c04dc0a7529bf4.tar.gz Qt-ee0c9c7003dc020113886070b5c04dc0a7529bf4.tar.bz2 |
Fix more warnings.
Diffstat (limited to 'src/declarative/qml/qmlglobalscriptclass.cpp')
-rw-r--r-- | src/declarative/qml/qmlglobalscriptclass.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlglobalscriptclass.cpp b/src/declarative/qml/qmlglobalscriptclass.cpp index 0ade5ee..91187c7 100644 --- a/src/declarative/qml/qmlglobalscriptclass.cpp +++ b/src/declarative/qml/qmlglobalscriptclass.cpp @@ -70,6 +70,10 @@ QmlGlobalScriptClass::queryProperty(const QScriptValue &object, const QScriptString &name, QueryFlags flags, uint *id) { + Q_UNUSED(object) + Q_UNUSED(name) + Q_UNUSED(flags) + Q_UNUSED(id) return HandlesReadAccess | HandlesWriteAccess; } @@ -78,6 +82,9 @@ QmlGlobalScriptClass::property(const QScriptValue &object, const QScriptString &name, uint id) { + Q_UNUSED(object) + Q_UNUSED(name) + Q_UNUSED(id) return engine()->undefinedValue(); } @@ -85,6 +92,8 @@ void QmlGlobalScriptClass::setProperty(QScriptValue &object, const QScriptString &name, uint id, const QScriptValue &value) { + Q_UNUSED(object) + Q_UNUSED(value) QString error = QLatin1String("Invalid write to global property \"") + name.toString() + QLatin1String("\""); engine()->currentContext()->throwError(error); |