summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2020-01-14 13:49:06 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2020-01-15 19:57:51 +0100
commitb482674e51c097fccffa1e1cc32b4843ad393894 (patch)
tree03c67ef532c63174d51e23d644caa96680779e64 /tests
parentb359faca3420916efd649b743501df3fdf5b6f35 (diff)
qtlocation: remove uses of the deprecated member-function
Which is QNetworkReply::error(). Use QNetworkReply::networkError() instead. Task-number: QTBUG-80369 Change-Id: Id41166a72c0d14bc77d9ec853db2f665617195ee 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 833c95af..ff3fd6ac 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 (error() != QNetworkReply::NoError)
- emit error(error());
+ if (networkError() != QNetworkReply::NoError)
+ emit error(networkError());
setFinished(true);
emit finished();
}