From 90a277bce36a7d37b73d6f9e53406499c7781bd2 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 6 Mar 2013 15:52:39 +0100 Subject: Fix warning about tautological comparison in tst_qstandarditem (CLANG). Change-Id: I87e3705b8e03ca84c90783b29f95ad19e5f33b74 Reviewed-by: Mitch Curtis --- tests/auto/gui/itemmodels/qstandarditem/tst_qstandarditem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/gui/itemmodels') diff --git a/tests/auto/gui/itemmodels/qstandarditem/tst_qstandarditem.cpp b/tests/auto/gui/itemmodels/qstandarditem/tst_qstandarditem.cpp index 649bc071b9..5406256c9f 100644 --- a/tests/auto/gui/itemmodels/qstandarditem/tst_qstandarditem.cpp +++ b/tests/auto/gui/itemmodels/qstandarditem/tst_qstandarditem.cpp @@ -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); -- cgit v1.2.3