diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-11-29 20:11:46 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2023-12-07 23:36:15 +0100 |
commit | 07ed8acdf98cd6c058fb9f5d62953e863c1f7886 (patch) | |
tree | bbfca9f20d9a94d69e1da11a78a0b69dc3341224 /tests/auto/corelib/global/qcompare | |
parent | 1576d70e44e46d5e6540ca3973e8d8284a4e7404 (diff) |
QPartialOrdering: add missing conversions to/from Qt::_ordering types
Since QPartialOrdering is supposed to be a drop-in-replacement for
Qt::partial_ordering, it need to have the same conversions from
Qt::_ordering types that Qt::partial_ordering has.
Fix by adding the necessary conversion and relational operators and
conversion constructors.
Change-Id: Ib8e78c850b43c8bcb3bb15c5f7d25be9d0da7339
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'tests/auto/corelib/global/qcompare')
-rw-r--r-- | tests/auto/corelib/global/qcompare/tst_qcompare.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/corelib/global/qcompare/tst_qcompare.cpp b/tests/auto/corelib/global/qcompare/tst_qcompare.cpp index f473c1706d..e02eb61fde 100644 --- a/tests/auto/corelib/global/qcompare/tst_qcompare.cpp +++ b/tests/auto/corelib/global/qcompare/tst_qcompare.cpp @@ -148,6 +148,7 @@ void tst_QCompare::legacyConversions() CHECK_CONVERTS(NS ::strong_ordering, QPartialOrdering); \ } while (false) + CHECK_ALL(Qt); #ifdef __cpp_lib_three_way_comparison CHECK_ALL(std); #endif // __cpp_lib_three_way_comparison |