Fix warning about tautological comparison in tst_qstandarditem (CLANG).
Change-Id: I87e3705b8e03ca84c90783b29f95ad19e5f33b74 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
This commit is contained in:
parent
d8e767e928
commit
90a277bce3
@ -187,7 +187,7 @@ void tst_QStandardItem::getSetData()
|
||||
item.setBackground(backgroundColor);
|
||||
QCOMPARE(item.background().color(), backgroundColor);
|
||||
|
||||
QColor textColor((i == i) ? Qt::green : Qt::cyan);
|
||||
QColor textColor((i == 1) ? Qt::green : Qt::cyan);
|
||||
item.setForeground(textColor);
|
||||
QCOMPARE(item.foreground().color(), textColor);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user