summaryrefslogtreecommitdiffstats
path: root/src/library
diff options
context:
space:
mode:
authorUwe Klotz <uklotz@mixxx.org>2021-04-22 21:31:41 +0200
committerUwe Klotz <uklotz@mixxx.org>2021-04-22 23:37:49 +0200
commitec2cb1a5922fa22d5646f784be5dfe8926ec45bb (patch)
treecba4b9d06bc81b398583b5d50fc528aa6a16e115 /src/library
parentde099a768f24040a97d4e521e80950f016febf44 (diff)
CoverArtDelegate: Move out of member variable (and leave empty)
Diffstat (limited to 'src/library')
-rw-r--r--src/library/coverartdelegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/coverartdelegate.cpp b/src/library/coverartdelegate.cpp
index 4d92f44f17..b8d17cb36c 100644
--- a/src/library/coverartdelegate.cpp
+++ b/src/library/coverartdelegate.cpp
@@ -63,11 +63,11 @@ void CoverArtDelegate::slotInhibitLazyLoading(
}
// If we can request non-cache covers now, request updates
// for all rows that were cache misses since the last time.
- auto staleRows = m_cacheMissRows;
// Reset the member variable before mutating the aggregated
// rows list (-> implicit sharing) and emitting a signal that
// in turn may trigger new signals for CoverArtDelegate!
- m_cacheMissRows = QList<int>();
+ QList<int> staleRows = std::move(m_cacheMissRows);
+ DEBUG_ASSERT(m_cacheMissRows.isEmpty());
emitRowsChanged(std::move(staleRows));
}