diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-05-10 09:11:26 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-10 11:42:23 +0200 |
commit | ebebf96230684b397ced702ea277eec55337c165 (patch) | |
tree | 0a0bbf3a87e6d84df44f2d563d80dce18d7a4bd1 /tests/auto | |
parent | 9a6d754e61ba57b8bf7a864011750910ac58ccbf (diff) |
QtQuick1: Fix build warnings.
- Add missing .json file.
- Fix warnings about unused variables, deprecated cast from char*.
Change-Id: Ibb5065e604460ff945b3e452b2270d2b7368ea49
Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'tests/auto')
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp b/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp index 696e76c8..c77d6bb8 100644 --- a/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp +++ b/tests/auto/declarative/qdeclarativedebug/tst_qdeclarativedebug.cpp @@ -1208,7 +1208,7 @@ int main(int argc, char *argv[]) char **_argv = new char*[_argc]; for (int i = 0; i < argc; ++i) _argv[i] = argv[i]; - _argv[_argc - 1] = "-qmljsdebugger=port:3768"; + _argv[_argc - 1] = const_cast<char *>("-qmljsdebugger=port:3768"); QApplication app(_argc, _argv); tst_QDeclarativeDebug tc; diff --git a/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp b/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp index b1b64aa0..8b1b2ca1 100644 --- a/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp +++ b/tests/auto/declarative/qdeclarativedebugclient/tst_qdeclarativedebugclient.cpp @@ -141,7 +141,7 @@ int main(int argc, char *argv[]) char **_argv = new char*[_argc]; for (int i = 0; i < argc; ++i) _argv[i] = argv[i]; - _argv[_argc - 1] = "-qmljsdebugger=port:13770"; + _argv[_argc - 1] = const_cast<char *>("-qmljsdebugger=port:13770"); QApplication app(_argc, _argv); tst_QDeclarativeDebugClient tc; diff --git a/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp b/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp index 0d500671..378bbebd 100644 --- a/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp +++ b/tests/auto/declarative/qdeclarativedebugservice/tst_qdeclarativedebugservice.cpp @@ -186,7 +186,7 @@ int main(int argc, char *argv[]) char **_argv = new char*[_argc]; for (int i = 0; i < argc; ++i) _argv[i] = argv[i]; - _argv[_argc - 1] = "-qmljsdebugger=port:13769"; + _argv[_argc - 1] = const_cast<char *>("-qmljsdebugger=port:13769"); QApplication app(_argc, _argv); tst_QDeclarativeDebugService tc; diff --git a/tests/auto/declarative/qdeclarativemoduleplugin/pureQml/plugin.cpp b/tests/auto/declarative/qdeclarativemoduleplugin/pureQml/plugin.cpp index bd578442..f3217c0f 100644 --- a/tests/auto/declarative/qdeclarativemoduleplugin/pureQml/plugin.cpp +++ b/tests/auto/declarative/qdeclarativemoduleplugin/pureQml/plugin.cpp @@ -67,7 +67,7 @@ public: qWarning("plugin created"); } - void registerTypes(const char *uri) + void registerTypes(const char * /* uri */) { } }; |