From ffa84b9fe4e57baa5c7e7af0fc58bedead2d8424 Mon Sep 17 00:00:00 2001 From: Pier Luigi Fiorini Date: Fri, 5 Apr 2024 14:47:57 +0200 Subject: [PATCH] Fix build error --- src/models/mergeproxymodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/mergeproxymodel.cpp b/src/models/mergeproxymodel.cpp index 9edec8a..c0f24cd 100644 --- a/src/models/mergeproxymodel.cpp +++ b/src/models/mergeproxymodel.cpp @@ -188,7 +188,7 @@ void MergeProxyModelPrivate::slotSourceLayoutAboutToBeChanged(const QListpersistentIndexList(); layoutChangePersistentIndexes.reserve(persistentIndexList.size()); - for (const QPersistentModelIndex &proxyPersistentIndex : persistentIndexList) { + for (const QPersistentModelIndex &proxyPersistentIndex : std::as_const(persistentIndexList)) { proxyIndexes << proxyPersistentIndex; Q_ASSERT(proxyPersistentIndex.isValid()); const QPersistentModelIndex srcPersistentIndex = q->mapToSource(proxyPersistentIndex);