diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2020-11-23 09:09:56 +0100 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2020-11-23 09:09:56 +0100 |
commit | 61de32791a45a3072bd40f41d9e375294277983d (patch) | |
tree | 2e33b09d6ecac997fa8efd32e6c57cff3f1c8d33 | |
parent | 0a0bdc79063c93ba4dfe798000537267119d6098 (diff) |
Fix clazy range-loop-analysis warnings in macOS build
-rw-r--r-- | src/widget/wtrackmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget/wtrackmenu.cpp b/src/widget/wtrackmenu.cpp index c24e4fa8f5..4d59925d2f 100644 --- a/src/widget/wtrackmenu.cpp +++ b/src/widget/wtrackmenu.cpp @@ -448,7 +448,7 @@ bool WTrackMenu::isAnyTrackBpmLocked() const { if (m_pTrackModel) { const int column = m_pTrackModel->fieldIndex(LIBRARYTABLE_BPM_LOCK); - for (const auto trackIndex : m_trackIndexList) { + for (const auto& trackIndex : m_trackIndexList) { QModelIndex bpmLockedIndex = trackIndex.sibling(trackIndex.row(), column); if (bpmLockedIndex.data().toBool()) { @@ -475,7 +475,7 @@ std::optional<std::optional<mixxx::RgbColor>> WTrackMenu::getCommonTrackColor() m_pTrackModel->fieldIndex(LIBRARYTABLE_COLOR); commonColor = mixxx::RgbColor::fromQVariant( m_trackIndexList.first().sibling(m_trackIndexList.first().row(), column).data()); - for (const auto trackIndex : m_trackIndexList) { + for (const auto& trackIndex : m_trackIndexList) { const auto otherColor = mixxx::RgbColor::fromQVariant( trackIndex.sibling(trackIndex.row(), column).data()); if (commonColor != otherColor) { |