1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-15 02:11:35 +01:00

Change const_iterator to iterator

This commit is contained in:
Jonas Kvinge 2021-06-28 00:27:28 +02:00
parent fdc9a71f9e
commit e4f684f411

View File

@ -246,7 +246,7 @@ QVariant ContextAlbumsModel::data(const CollectionItem *item, int role) const {
void ContextAlbumsModel::Reset() { void ContextAlbumsModel::Reset() {
for (QMap<QString, CollectionItem*>::const_iterator it = container_nodes_.begin() ; it != container_nodes_.end(); ++it) { for (QMap<QString, CollectionItem*>::iterator it = container_nodes_.begin() ; it != container_nodes_.end(); ++it) {
const QString cache_key = AlbumIconPixmapCacheKey(ItemToIndex(it.value())); const QString cache_key = AlbumIconPixmapCacheKey(ItemToIndex(it.value()));
QPixmapCache::remove(cache_key); QPixmapCache::remove(cache_key);
} }