summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2020-02-24 16:03:17 +0000
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2020-02-25 16:22:01 +0000
commitec3001c3490b14de3b242dce6af97ec519433305 (patch)
tree5f2e81c91eee4e506440d6d87878df556b0a5fea /tests
parentd983c7edac94b5e397b781b3f7a9b119d1996318 (diff)
Revert "qtlocation: remove uses of the deprecated member-function"
This reverts commit b482674e51c097fccffa1e1cc32b4843ad393894. Reason for revert: naming in QProcess is considered to be the correct one. Change-Id: I6722adfc06b351c76fb432628a678c4ce887d594 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/nokia_services/routing/tst_routing.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/nokia_services/routing/tst_routing.cpp b/tests/auto/nokia_services/routing/tst_routing.cpp
index ff3fd6ac..833c95af 100644
--- a/tests/auto/nokia_services/routing/tst_routing.cpp
+++ b/tests/auto/nokia_services/routing/tst_routing.cpp
@@ -102,8 +102,8 @@ void MockGeoNetworkReply::setFile(QFile* file)
void MockGeoNetworkReply::complete()
{
- if (networkError() != QNetworkReply::NoError)
- emit error(networkError());
+ if (error() != QNetworkReply::NoError)
+ emit error(error());
setFinished(true);
emit finished();
}