From b58a346be96f7d0973ed96e52c4cf95463ba244d Mon Sep 17 00:00:00 2001 From: Méven Car Date: Sun, 10 Sep 2023 15:19:13 +0200 Subject: Replace qAsConst with std::as_const --- src/tests/kitemsettest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests/kitemsettest.cpp') diff --git a/src/tests/kitemsettest.cpp b/src/tests/kitemsettest.cpp index e0c536c67..0005daceb 100644 --- a/src/tests/kitemsettest.cpp +++ b/src/tests/kitemsettest.cpp @@ -66,11 +66,11 @@ static QSet KItemSet2QSet(const KItemSet &itemSet) // Check that the conversion was successful. Q_ASSERT(itemSet.count() == result.count()); - for (int i : qAsConst(itemSet)) { + for (int i : std::as_const(itemSet)) { Q_ASSERT(result.contains(i)); } - for (int i : qAsConst(result)) { + for (int i : std::as_const(result)) { Q_ASSERT(itemSet.contains(i)); } -- cgit v1.3