aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/scrobbler/scrobbler.cpp
diff options
context:
space:
mode:
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);