diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-01-14 13:49:06 +0100 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-01-15 19:57:51 +0100 |
commit | b482674e51c097fccffa1e1cc32b4843ad393894 (patch) | |
tree | 03c67ef532c63174d51e23d644caa96680779e64 /examples/positioning | |
parent | b359faca3420916efd649b743501df3fdf5b6f35 (diff) | |
download | qtlocation-b482674e51c097fccffa1e1cc32b4843ad393894.tar.gz |
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 'examples/positioning')
-rw-r--r-- | examples/positioning/weatherinfo/appmodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/positioning/weatherinfo/appmodel.cpp b/examples/positioning/weatherinfo/appmodel.cpp index d07a5980..93186aea 100644 --- a/examples/positioning/weatherinfo/appmodel.cpp +++ b/examples/positioning/weatherinfo/appmodel.cpp @@ -347,7 +347,7 @@ void AppModel::handleGeoNetworkData(QNetworkReply *networkReply) return; } - if (!networkReply->error()) { + if (!networkReply->networkError()) { d->nErrors = 0; if (!d->throttle.isValid()) d->throttle.start(); @@ -403,7 +403,7 @@ void AppModel::handleWeatherNetworkData(QNetworkReply *networkReply) if (!networkReply) return; - if (!networkReply->error()) { + if (!networkReply->networkError()) { foreach (WeatherData *inf, d->forecast) delete inf; d->forecast.clear(); @@ -455,7 +455,7 @@ void AppModel::handleForecastNetworkData(QNetworkReply *networkReply) if (!networkReply) return; - if (!networkReply->error()) { + if (!networkReply->networkError()) { QJsonDocument document = QJsonDocument::fromJson(networkReply->readAll()); QJsonObject jo; |