summaryrefslogtreecommitdiffstats
path: root/src/engine/sync/enginesync.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/sync/enginesync.cpp')
-rw-r--r--src/engine/sync/enginesync.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/sync/enginesync.cpp b/src/engine/sync/enginesync.cpp
index d180f23b9b..bf27fbd1a7 100644
--- a/src/engine/sync/enginesync.cpp
+++ b/src/engine/sync/enginesync.cpp
@@ -30,7 +30,7 @@ Syncable* EngineSync::pickMaster(Syncable* enabling_syncable) {
int stopped_deck_count = 0;
int playing_deck_count = 0;
- for (const auto& pSyncable : m_syncables) {
+ for (const auto& pSyncable : qAsConst(m_syncables)) {
if (pSyncable->getBaseBpm() <= 0.0) {
continue;
}
@@ -458,7 +458,7 @@ Syncable* EngineSync::pickNonSyncSyncTarget(EngineChannel* pDontPick) const {
bool EngineSync::otherSyncedPlaying(const QString& group) {
bool othersInSync = false;
- for (Syncable* theSyncable : m_syncables) {
+ for (Syncable* theSyncable : qAsConst(m_syncables)) {
bool isSynchonized = theSyncable->isSynchronized();
if (theSyncable->getGroup() == group) {
if (!isSynchonized) {