From: Sami Rämö Date: Fri, 12 Nov 2010 11:55:32 +0000 (+0200) Subject: Fixed unit tests X-Git-Url: https://vcs.maemo.org/git/?p=situare;a=commitdiff_plain;h=b030ac21a6bf8f480c7097f708351893168e50e8 Fixed unit tests --- diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index e149901..a8f58ed 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -849,6 +849,7 @@ void MainWindow::sslErrors(QNetworkReply *reply, const QList &errors) { qWarning() << __PRETTY_FUNCTION__; + Q_UNUSED(errors) reply->ignoreSslErrors(); } diff --git a/tests/map/mapengine/testmapengine.cpp b/tests/map/mapengine/testmapengine.cpp index 1b5d78a..5676d3d 100644 --- a/tests/map/mapengine/testmapengine.cpp +++ b/tests/map/mapengine/testmapengine.cpp @@ -199,7 +199,7 @@ void TestMapEngine::usingLastLocation() QCOMPARE (mapEngineSpy.count(), 0); // Write new zoomlevel and location to settings - QSettings settings(DIRECTORY_NAME, FILE_NAME); + QSettings settings(SETTINGS_ORGANIZATION_NAME, SETTINGS_APPLICATION_NAME); settings.setValue(MAP_LAST_ZOOMLEVEL, ZOOM_LEVEL); settings.setValue(MAP_LAST_POSITION, QVariant::fromValue(GeoCoordinate(DEFAULT_TEST_SCENECOORDINATE)));