From e4f684f41124e5423a166cf4172c9f6403b6a99e Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 28 Jun 2021 00:27:28 +0200 Subject: [PATCH] Change const_iterator to iterator --- src/context/contextalbumsmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/contextalbumsmodel.cpp b/src/context/contextalbumsmodel.cpp index c660364d5..bc1d2844c 100644 --- a/src/context/contextalbumsmodel.cpp +++ b/src/context/contextalbumsmodel.cpp @@ -246,7 +246,7 @@ QVariant ContextAlbumsModel::data(const CollectionItem *item, int role) const { void ContextAlbumsModel::Reset() { - for (QMap::const_iterator it = container_nodes_.begin() ; it != container_nodes_.end(); ++it) { + for (QMap::iterator it = container_nodes_.begin() ; it != container_nodes_.end(); ++it) { const QString cache_key = AlbumIconPixmapCacheKey(ItemToIndex(it.value())); QPixmapCache::remove(cache_key); }