aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-10-14 15:12:42 +0200
committerChristian Stenger <christian.stenger@theqtcompany.com>2015-10-14 16:15:07 +0300
commit0749d66362ff96b0792fefb9b7c79409cb6d02b5 (patch)
treee6f7dc4bb6913c2d01525e1ed829309364b31067
parent1daf85a722dba7aa06f307ea34abb97e0bf8a0a6 (diff)
Fix warning about comparing an enum to an integerat-v3.6.0-beta1
Change-Id: I2a35fa58c5e68d3bd2bb38599ddcf7c4e8e0deb2 Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
-rw-r--r--plugins/autotest/testtreeitem.cpp2
1 files changed, 1 insertions, 1 deletions
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<unsigned long>(type) >= sizeof(icons))
return icons[2];
return icons[type];
}