don't use const'ref here (found by clazy)

This commit is contained in:
Laurent Montel 2022-10-11 08:59:26 +02:00
parent 8e0d84d0af
commit 8916a647d6
2 changed files with 2 additions and 2 deletions

View file

@ -456,7 +456,7 @@ void KFileItemModelRolesUpdater::slotItemsRemoved(const KItemRangeList& itemRang
} }
} }
void KFileItemModelRolesUpdater::slotItemsMoved(const KItemRange& itemRange, const QList<int> &movedToIndexes) void KFileItemModelRolesUpdater::slotItemsMoved(KItemRange itemRange, const QList<int> &movedToIndexes)
{ {
Q_UNUSED(itemRange) Q_UNUSED(itemRange)
Q_UNUSED(movedToIndexes) Q_UNUSED(movedToIndexes)

View file

@ -177,7 +177,7 @@ public:
private Q_SLOTS: private Q_SLOTS:
void slotItemsInserted(const KItemRangeList& itemRanges); void slotItemsInserted(const KItemRangeList& itemRanges);
void slotItemsRemoved(const KItemRangeList& itemRanges); void slotItemsRemoved(const KItemRangeList& itemRanges);
void slotItemsMoved(const KItemRange& itemRange, const QList<int> &movedToIndexes); void slotItemsMoved(KItemRange itemRange, const QList<int> &movedToIndexes);
void slotItemsChanged(const KItemRangeList& itemRanges, void slotItemsChanged(const KItemRangeList& itemRanges,
const QSet<QByteArray>& roles); const QSet<QByteArray>& roles);
void slotSortRoleChanged(const QByteArray& current, void slotSortRoleChanged(const QByteArray& current,