From: Felix Ernst Date: Thu, 19 Oct 2023 09:44:59 +0000 (+0200) Subject: Replace a deprecated qAsConst with std::as_const X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/c90afc3e88bd7966784d151f329421ce98cd010e Replace a deprecated qAsConst with std::as_const --- diff --git a/src/kitemviews/kitemset.h b/src/kitemviews/kitemset.h index b8ab6864d..d3562aca4 100644 --- a/src/kitemviews/kitemset.h +++ b/src/kitemviews/kitemset.h @@ -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;