diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-02-20 21:50:33 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2020-02-20 21:50:33 +0000 |
| commit | 94d94622cb6067a073833b1e4afe306878a1e584 (patch) | |
| tree | 75bf0054435ea459eff42a40bdff3007295c44de /src/plugins/General/scrobbler/scrobbler.cpp | |
| parent | de257043fd559afee78e954ac43d746c3bc4dd94 (diff) | |
| download | qmmp-94d94622cb6067a073833b1e4afe306878a1e584.tar.gz qmmp-94d94622cb6067a073833b1e4afe306878a1e584.tar.bz2 qmmp-94d94622cb6067a073833b1e4afe306878a1e584.zip | |
fixed Qt 5.15 warnings
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9238 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler/scrobbler.cpp')
| -rw-r--r-- | src/plugins/General/scrobbler/scrobbler.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp index 61c60cdff..4616c3951 100644 --- a/src/plugins/General/scrobbler/scrobbler.cpp +++ b/src/plugins/General/scrobbler/scrobbler.cpp @@ -181,7 +181,11 @@ void Scrobbler::updateMetaData() void Scrobbler::processResponse(QNetworkReply *reply) { +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) + if (reply->networkError() != QNetworkReply::NoError) +#else if (reply->error() != QNetworkReply::NoError) +#endif { qWarning("Scrobbler[%s]: http error: %s", qPrintable(m_name), qPrintable(reply->errorString())); } @@ -497,7 +501,11 @@ QString ScrobblerAuth::session() const void ScrobblerAuth::processResponse(QNetworkReply *reply) { +#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)) + if (reply->networkError() != QNetworkReply::NoError) +#else if (reply->error() != QNetworkReply::NoError) +#endif { qWarning("ScrobblerAuth[%s]: http error: %s", qPrintable(m_name), qPrintable(reply->errorString())); } |
