Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
plfiorini committed Apr 5, 2024
1 parent 1ef0c5a commit ffa84b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/mergeproxymodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void MergeProxyModelPrivate::slotSourceLayoutAboutToBeChanged(const QList<QPersi
const QModelIndexList persistentIndexList = q->persistentIndexList();
layoutChangePersistentIndexes.reserve(persistentIndexList.size());

for (const QPersistentModelIndex &proxyPersistentIndex : persistentIndexList) {
for (const QPersistentModelIndex &proxyPersistentIndex : std::as_const(persistentIndexList)) {

Check warning on line 191 in src/models/mergeproxymodel.cpp

View workflow job for this annotation

GitHub Actions / linux-qt6 / build (gcc)

loop variable 'proxyPersistentIndex' of type 'const QPersistentModelIndex&' binds to a temporary constructed from type 'const QModelIndex' [-Wrange-loop-construct]

Check warning on line 191 in src/models/mergeproxymodel.cpp

View workflow job for this annotation

GitHub Actions / linux-qt6 / build (clang)

loop variable 'proxyPersistentIndex' of type 'const QPersistentModelIndex &' binds to a temporary constructed from type 'const QModelIndex &' [-Wrange-loop-construct]
proxyIndexes << proxyPersistentIndex;
Q_ASSERT(proxyPersistentIndex.isValid());
const QPersistentModelIndex srcPersistentIndex = q->mapToSource(proxyPersistentIndex);
Expand Down

0 comments on commit ffa84b9

Please sign in to comment.