diff options
Diffstat (limited to 'src/corelib/text/qanystringview.h')
-rw-r--r-- | src/corelib/text/qanystringview.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qanystringview.h b/src/corelib/text/qanystringview.h index c073eda3b6..a760625344 100644 --- a/src/corelib/text/qanystringview.h +++ b/src/corelib/text/qanystringview.h @@ -229,7 +229,7 @@ private: [[nodiscard]] friend inline bool operator!=(QAnyStringView lhs, QAnyStringView rhs) noexcept { return !QAnyStringView::equal(lhs, rhs); } -#ifdef __cpp_impl_three_way_comparison +#if defined(__cpp_impl_three_way_comparison) && !defined(Q_QDOC) [[nodiscard]] friend inline auto operator<=>(QAnyStringView lhs, QAnyStringView rhs) noexcept { return QAnyStringView::compare(lhs, rhs) <=> 0; } #else |