Give LegacyUncomparable::Unordered's value a symbolic name
We'll need it higher up in the file, but we don't want to/can't move
code around, so make -127 a symbolic constant.
Amends 39c7bf4631, which, however,
merely moved the code around.
Change-Id: Id6f2d51e5678b3bad7ae658cc3e38fd3909861d7
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 57aabff91eed41fb7ba0cf67df4fe7767c6e0e43)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit 176f9f6ce2bbdf5d227f44c5d057932347dd69ab)
bb10
parent
4f234b02b7
commit
5e5667da23
|
|
@ -23,6 +23,7 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
namespace QtPrivate {
|
||||
using CompareUnderlyingType = qint8;
|
||||
constexpr CompareUnderlyingType LegacyUncomparableValue = -127; // historic Qt value
|
||||
|
||||
// [cmp.categories.pre] / 1
|
||||
enum class Ordering : CompareUnderlyingType
|
||||
|
|
@ -666,7 +667,7 @@ auto qCompareThreeWay(const LT &lhs, const RT &rhs)
|
|||
namespace QtPrivate {
|
||||
enum class LegacyUncomparable : CompareUnderlyingType
|
||||
{
|
||||
Unordered = -127
|
||||
Unordered = QtPrivate::LegacyUncomparableValue
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue