mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
Replace a deprecated qAsConst with std::as_const
This commit is contained in:
parent
6271ee8a5a
commit
c90afc3e88
|
@ -368,7 +368,7 @@ inline KItemSet &KItemSet::operator=(const KItemSet &other)
|
||||||
inline int KItemSet::count() const
|
inline int KItemSet::count() const
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
for (const KItemRange &range : qAsConst(m_itemRanges)) {
|
for (const KItemRange &range : std::as_const(m_itemRanges)) {
|
||||||
result += range.count;
|
result += range.count;
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue