mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
refs #472 Removed static_cast<int> for enums in blackmisc, no longer needed.
This commit is contained in:
@@ -54,11 +54,11 @@ namespace BlackMisc
|
||||
|
||||
// special case, handle icon and allow to set it
|
||||
// doing this in the switch gives gcc warning as IndexIcon is no member of ColumnIndex
|
||||
if (i == static_cast<int>(IndexIcon))
|
||||
if (static_cast<int>(i) == static_cast<int>(IndexIcon))
|
||||
{
|
||||
if (static_cast<QMetaType::Type>(variant.type()) == QMetaType::Int)
|
||||
{
|
||||
CIcons::IconIndex index = static_cast<CIcons::IconIndex>(variant.toInt());
|
||||
CIcons::IconIndex index = variant.value<CIcons::IconIndex>();
|
||||
this->m_icon = CIconList::iconByIndex(index);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user