Result of comparison of unsigned enum expression >= 0 is always true

This commit is contained in:
Roland Winklmeier
2018-08-24 15:18:49 +02:00
parent 4b160fe42c
commit d4608e6a5b

View File

@@ -41,7 +41,7 @@ namespace BlackMisc
bool CIcon::isIndexBased() const
{
return m_index >= 0 && m_index < CIcons::IconIsGenerated;
return m_index < CIcons::IconIsGenerated;
}
bool CIcon::isGenerated() const