XmlStringRef: remove operator<=>

It's defined in terms of operator<=> on QStringView, which does
not exist, causing a compile error.

Change-Id: I64fc60da4e52c7e53be7849d9b42952be139a816
Fixes: QTBUG-89729
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
(cherry picked from commit 1dc4e5d3ebc265d13fe29657b81b7c44ea5f0ed2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Giuseppe D'Angelo 2020-12-31 11:27:08 +01:00 committed by Qt Cherry-pick Bot
parent 15787f66b6
commit 80bcba5661

View File

@ -104,9 +104,6 @@ public:
MAKE_OP(>=)
MAKE_OP(<)
MAKE_OP(>)
#ifdef __cpp_impl_three_way_comparison
MAKE_OP(<=>)
#endif
#undef MAKE_OP
#define MAKE_OP(op) \
friend auto operator op(const XmlStringRef &lhs, QStringView rhs) noexcept { return lhs.view() op rhs; } \
@ -118,9 +115,6 @@ public:
MAKE_OP(>=)
MAKE_OP(<)
MAKE_OP(>)
#ifdef __cpp_impl_three_way_comparison
MAKE_OP(<=>)
#endif
#undef MAKE_OP
};