aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler/scrobbler.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-09-08 11:49:28 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-09-08 11:49:28 +0000
commit463f4e95cff0e100b4c8c8b5378cfe1b2604c138 (patch)
treecb73da70a910165d5715d6fc20c11587454c4133 /src/plugins/General/scrobbler/scrobbler.cpp
parent1e31fe896524513577911e382897b841e40a4814 (diff)
downloadqmmp-463f4e95cff0e100b4c8c8b5378cfe1b2604c138.tar.gz
qmmp-463f4e95cff0e100b4c8c8b5378cfe1b2604c138.tar.bz2
qmmp-463f4e95cff0e100b4c8c8b5378cfe1b2604c138.zip
fixed possible regressions
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9068 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/scrobbler/scrobbler.cpp')
-rw-r--r--src/plugins/General/scrobbler/scrobbler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/General/scrobbler/scrobbler.cpp b/src/plugins/General/scrobbler/scrobbler.cpp
index 510f2e6aa..0a8b114f4 100644
--- a/src/plugins/General/scrobbler/scrobbler.cpp
+++ b/src/plugins/General/scrobbler/scrobbler.cpp
@@ -297,7 +297,7 @@ void Scrobbler::submit()
params.insert("method", "track.scrobble");
params.insert("sk", m_session);
- QStringList keys = params.keys();
+ const QStringList keys = params.keys();
for(const QString &key : qAsConst(keys)) //removes empty keys
{
if(params.value(key).isEmpty() || params.value(key) == "0")
@@ -347,7 +347,8 @@ void Scrobbler::sendNotification(const SongInfo &info)
params.insert("method", "track.updateNowPlaying");
params.insert("sk", m_session);
- for(const QString &key : qAsConst(params)) //removes empty keys
+ const QStringList keys = params.keys();
+ for(const QString &key : qAsConst(keys)) //removes empty keys
{
if(params.value(key).isEmpty())
params.remove(key);