tst_QCollator: avoid an unused variable warning

Change-Id: Ib173df3e9b92f06935aa4de5a1d423118877ad22
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Edward Welbourne 2020-07-10 12:28:25 +02:00
parent 361dc074f2
commit 72be9bdd37

View File

@ -190,8 +190,10 @@ void tst_QCollator::compare()
QFETCH(int, result);
QFETCH(int, caseInsensitiveResult);
QFETCH(bool, numericMode);
#if !QT_CONFIG(icu)
QFETCH(bool, ignorePunctuation);
QFETCH(int, punctuationResult);
#endif
QCollator collator((QLocale(locale)));
// Need to canonicalize sign to -1, 0 or 1, as .compare() can produce any -ve for <, any +ve for >.