mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#10649 ApplicationLibCode: Use collection.empty() instead of comparing with size
This commit is contained in:
@@ -944,7 +944,7 @@ QString RimRegularLegendConfig::categoryNameFromCategoryValue( double categoryRe
|
||||
{
|
||||
if ( categoryResultValue == HUGE_VAL ) return "Undefined";
|
||||
|
||||
if ( m_categoryNames.size() > 0 )
|
||||
if ( !m_categoryNames.empty() )
|
||||
{
|
||||
for ( size_t categoryIndex = 0; categoryIndex < m_categories.size(); categoryIndex++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user