diff options
author | Uwe Klotz <uklotz@mixxx.org> | 2021-04-22 21:31:41 +0200 |
---|---|---|
committer | Uwe Klotz <uklotz@mixxx.org> | 2021-04-22 23:37:49 +0200 |
commit | ec2cb1a5922fa22d5646f784be5dfe8926ec45bb (patch) | |
tree | cba4b9d06bc81b398583b5d50fc528aa6a16e115 /src/library | |
parent | de099a768f24040a97d4e521e80950f016febf44 (diff) |
CoverArtDelegate: Move out of member variable (and leave empty)
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/coverartdelegate.cpp | 4 |
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)); } |