tst_QCollator: avoid an unused variable warning
Change-Id: Ib173df3e9b92f06935aa4de5a1d423118877ad22 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
361dc074f2
commit
72be9bdd37
@ -190,8 +190,10 @@ void tst_QCollator::compare()
|
|||||||
QFETCH(int, result);
|
QFETCH(int, result);
|
||||||
QFETCH(int, caseInsensitiveResult);
|
QFETCH(int, caseInsensitiveResult);
|
||||||
QFETCH(bool, numericMode);
|
QFETCH(bool, numericMode);
|
||||||
|
#if !QT_CONFIG(icu)
|
||||||
QFETCH(bool, ignorePunctuation);
|
QFETCH(bool, ignorePunctuation);
|
||||||
QFETCH(int, punctuationResult);
|
QFETCH(int, punctuationResult);
|
||||||
|
#endif
|
||||||
|
|
||||||
QCollator collator((QLocale(locale)));
|
QCollator collator((QLocale(locale)));
|
||||||
// Need to canonicalize sign to -1, 0 or 1, as .compare() can produce any -ve for <, any +ve for >.
|
// Need to canonicalize sign to -1, 0 or 1, as .compare() can produce any -ve for <, any +ve for >.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user