From 3cc39197f816ac7a84b5211df23e553309fe44c0 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 5 May 2023 23:07:34 -0700 Subject: [PATCH] tst_QAnyStringView: fix warning of unused variable by using it Pick-to: 6.5 6.2 Change-Id: Ieab617d69f3b4b54ab30fffd175c78ddb5fb919d Reviewed-by: Marc Mutz --- tests/auto/corelib/text/qanystringview/tst_qanystringview.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/auto/corelib/text/qanystringview/tst_qanystringview.cpp b/tests/auto/corelib/text/qanystringview/tst_qanystringview.cpp index 591c82ab8d..d5a62887e1 100644 --- a/tests/auto/corelib/text/qanystringview/tst_qanystringview.cpp +++ b/tests/auto/corelib/text/qanystringview/tst_qanystringview.cpp @@ -684,7 +684,9 @@ void tst_QAnyStringView::compare3way() const QAnyStringView bb = u"bb"; COMPARE_3WAY(aa, aa, std::strong_ordering::equal); COMPARE_3WAY(aa, bb, std::strong_ordering::less); - COMPARE_3WAY(bb, aa, std::strong_ordering::greater) + COMPARE_3WAY(bb, aa, std::strong_ordering::greater); + COMPARE_3WAY(upperAa, aa, std::strong_ordering::less); + COMPARE_3WAY(aa, upperAa, std::strong_ordering::greater); ); #undef COMPARE_3WAY }