From 94d94622cb6067a073833b1e4afe306878a1e584 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Thu, 20 Feb 2020 21:50:33 +0000 Subject: 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 --- src/plugins/General/scrobbler/scrobbler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/plugins/General/scrobbler/scrobbler.cpp') 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())); } -- cgit v1.2.3-13-gbd6f