Skip to content

Commit

Permalink
improve constant correctness
Browse files Browse the repository at this point in the history
Co-authored-by: ronso0 <[email protected]>
  • Loading branch information
daschuer and ronso0 authored Oct 6, 2024
1 parent 070dbb0 commit ce671a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/library/coverartdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ void CoverArtDelegate::paintItem(
void CoverArtDelegate::cleanCacheMissRows() const {
auto it = m_cacheMissRows.begin();
while (it != m_cacheMissRows.end()) {
QModelIndex index = m_pTableView->model()->index(*it, m_column);
QRect rect = m_pTableView->visualRect(index);
const QModelIndex index = m_pTableView->model()->index(*it, m_column);
const QRect rect = m_pTableView->visualRect(index);
if (!rect.intersects(m_pTableView->rect())) {
// Cover image row is no longer shown. We keep the set
// small which likely reuses the allocatd memory later
Expand Down

0 comments on commit ce671a3

Please sign in to comment.