1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-07 10:51:45 +00:00

Replace a deprecated qAsConst with std::as_const

This commit is contained in:
Felix Ernst 2023-10-19 11:44:59 +02:00
parent 6271ee8a5a
commit c90afc3e88

View File

@ -368,7 +368,7 @@ inline KItemSet &KItemSet::operator=(const KItemSet &other)
inline int KItemSet::count() const
{
int result = 0;
for (const KItemRange &range : qAsConst(m_itemRanges)) {
for (const KItemRange &range : std::as_const(m_itemRanges)) {
result += range.count;
}
return result;