1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 18:03:44 +01:00

ContextAlbumsModel: Use const_iterator

This commit is contained in:
Jonas Kvinge 2021-10-30 02:05:55 +02:00
parent 24e2338769
commit a704412dee

View File

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