From 0749d66362ff96b0792fefb9b7c79409cb6d02b5 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 14 Oct 2015 15:12:42 +0200 Subject: Fix warning about comparing an enum to an integer Change-Id: I2a35fa58c5e68d3bd2bb38599ddcf7c4e8e0deb2 Reviewed-by: Christian Stenger --- plugins/autotest/testtreeitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/autotest/testtreeitem.cpp b/plugins/autotest/testtreeitem.cpp index 8e36d95577..4dc78f3aa1 100644 --- a/plugins/autotest/testtreeitem.cpp +++ b/plugins/autotest/testtreeitem.cpp @@ -73,7 +73,7 @@ static QIcon testTreeIcon(TestTreeItem::Type type) QIcon(QLatin1String(":/images/func.png")), QIcon(QLatin1String(":/images/data.png")) }; - if (type >= sizeof(icons)) + if (static_cast(type) >= sizeof(icons)) return icons[2]; return icons[type]; } -- cgit v1.2.1