aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler/scrobbler.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-03 07:41:04 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-01-03 07:41:04 +0000
commitb917024aa1ac4cb0a40164132db3c6d2913157eb (patch)
tree4424bef9f2ac9a3dab21c822836a1b5c79ffee47 /src/plugins/General/scrobbler/scrobbler.cpp
parentbef5a901922c002815d047d276e61ec0bf8c0f46 (diff)
downloadqmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.gz
qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.tar.bz2
qmmp-b917024aa1ac4cb0a40164132db3c6d2913157eb.zip
fixed build with -Werror=zero-as-null-pointer-constant
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@8572 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler/scrobbler.cpp')
-rw-r--r--src/plugins/General/scrobbler/scrobbler.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp
index 468a88bd6..6082b237a 100644
--- a/src/plugins/General/scrobbler/scrobbler.cpp
+++ b/src/plugins/General/scrobbler/scrobbler.cpp
@@ -82,9 +82,9 @@ void ScrobblerResponse::parse(QIODevice *device)
Scrobbler::Scrobbler(const QString &scrobblerUrl, const QString &name, QObject *parent)
: QObject(parent)
{
- m_notificationReply = 0;
+ m_notificationReply = nullptr;
m_submitedSongs = 0;
- m_submitReply = 0;
+ m_submitReply = nullptr;
m_previousState = Qmmp::Stopped;
m_elapsed = 0;
m_scrobblerUrl = scrobblerUrl;
@@ -211,7 +211,7 @@ void Scrobbler::processResponse(QNetworkReply *reply)
if (reply == m_submitReply)
{
- m_submitReply = 0;
+ m_submitReply = nullptr;
if (response.status == "ok")
{
qDebug("Scrobbler[%s]: submited %d song(s)", qPrintable(m_name), m_submitedSongs);
@@ -248,7 +248,7 @@ void Scrobbler::processResponse(QNetworkReply *reply)
}
else if (reply == m_notificationReply)
{
- m_notificationReply = 0;
+ m_notificationReply = nullptr;
if(response.status == "ok")
{
qDebug("Scrobbler[%s]: Now-Playing notification done", qPrintable(m_name));
@@ -386,8 +386,8 @@ void Scrobbler::sendNotification(const SongInfo &info)
ScrobblerAuth::ScrobblerAuth(const QString &scrobblerUrl, const QString &authUrl,
const QString &name, QObject *parent) : QObject(parent)
{
- m_getTokenReply = 0;
- m_getSessionReply = 0;
+ m_getTokenReply = nullptr;
+ m_getSessionReply = nullptr;
m_scrobblerUrl = scrobblerUrl;
m_authUrl = authUrl;
m_name = name;
@@ -522,7 +522,7 @@ void ScrobblerAuth::processResponse(QNetworkReply *reply)
if (reply == m_getTokenReply)
{
- m_getTokenReply = 0;
+ m_getTokenReply = nullptr;
if(response.status == "ok")
{
m_token = response.token;
@@ -548,7 +548,7 @@ void ScrobblerAuth::processResponse(QNetworkReply *reply)
}
else if(reply == m_getSessionReply)
{
- m_getSessionReply = 0;
+ m_getSessionReply = nullptr;
m_session.clear();
if(response.status == "ok")
{
@@ -586,7 +586,7 @@ void ScrobblerAuth::processResponse(QNetworkReply *reply)
}
else if(reply == m_checkSessionReply)
{
- m_checkSessionReply = 0;
+ m_checkSessionReply = nullptr;
if(response.status == "ok")
{
qDebug("ScrobblerAuth[%s]: session ok", qPrintable(m_name));