From 5eee84bc9f9a7eae2a77eaf0e30f00d7426e6d22 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 16 Nov 2023 10:34:49 +0100 Subject: [PATCH] QPartialOrdering: mark isOrdered() as const Because it is. Amends 405244fe301ac18d20aae245ba2faafaec74e453. Pick-to: 6.5 Change-Id: Icc7bb1a000e89b63254ca5c306325d01603eb1d4 Reviewed-by: Ivan Solovev Reviewed-by: Thiago Macieira (cherry picked from commit ccc46d8f89226b6a89f7c1a63e44d4605483b1cb) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/global/qcompare.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qcompare.h b/src/corelib/global/qcompare.h index eb4167168e7..89809df6393 100644 --- a/src/corelib/global/qcompare.h +++ b/src/corelib/global/qcompare.h @@ -107,7 +107,7 @@ private: // instead of the exposition only is_ordered member in [cmp.partialord], // use a private function - constexpr bool isOrdered() noexcept + constexpr bool isOrdered() const noexcept { return m_order != static_cast(QtPrivate::Uncomparable::Unordered); } QtPrivate::CompareUnderlyingType m_order;