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:
Friedemann Kleint 2013-03-06 15:52:39 +01:00 committed by The Qt Project
parent d8e767e928
commit 90a277bce3

View File

@ -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);