diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-10 12:28:25 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2020-07-13 12:03:21 +0200 |
commit | 72be9bdd376453dbce35663fd685290474cd1e39 (patch) | |
tree | e7cc93d612ee9193c76c79c79ecb175915c384b5 /tests | |
parent | 361dc074f2301b4b68435c05ccaa7279c0170776 (diff) |
tst_QCollator: avoid an unused variable warning
Change-Id: Ib173df3e9b92f06935aa4de5a1d423118877ad22
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/corelib/text/qcollator/tst_qcollator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/corelib/text/qcollator/tst_qcollator.cpp b/tests/auto/corelib/text/qcollator/tst_qcollator.cpp index f0fcbf6aba..e0c5cea980 100644 --- a/tests/auto/corelib/text/qcollator/tst_qcollator.cpp +++ b/tests/auto/corelib/text/qcollator/tst_qcollator.cpp @@ -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 >. |