Commit 0749d663 authored by Tobias Hunger's avatar Tobias Hunger Committed by Christian Stenger

Fix warning about comparing an enum to an integer

Change-Id: I2a35fa58c5e68d3bd2bb38599ddcf7c4e8e0deb2
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 1daf85a7
......@@ -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];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment