#10649 ApplicationLibCode: Use collection.empty() instead of comparing with size

This commit is contained in:
Kristian Bendiksen
2023-09-27 08:07:49 +02:00
parent 98796b0dd9
commit 959c9d48fa
220 changed files with 432 additions and 431 deletions

View File

@@ -194,7 +194,7 @@ RifEclipseSummaryAddress RifEclipseUserDataKeywordTools::makeAndFillAddress( con
break;
case RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_AQUIFER:
{
if ( columnHeaderText.size() > 0 )
if ( !columnHeaderText.empty() )
{
aquiferNumber = RiaStdStringTools::toInt( columnHeaderText[0] );
}
@@ -206,7 +206,7 @@ RifEclipseSummaryAddress RifEclipseUserDataKeywordTools::makeAndFillAddress( con
break;
case RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_REGION:
{
if ( columnHeaderText.size() > 0 )
if ( !columnHeaderText.empty() )
{
regionNumber = RiaStdStringTools::toInt( columnHeaderText[0] );
}
@@ -216,7 +216,7 @@ RifEclipseSummaryAddress RifEclipseUserDataKeywordTools::makeAndFillAddress( con
break;
case RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_GROUP:
{
if ( columnHeaderText.size() > 0 )
if ( !columnHeaderText.empty() )
{
groupName = columnHeaderText[0];
}
@@ -224,7 +224,7 @@ RifEclipseSummaryAddress RifEclipseUserDataKeywordTools::makeAndFillAddress( con
}
case RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_WELL:
{
if ( columnHeaderText.size() > 0 )
if ( !columnHeaderText.empty() )
{
wellName = columnHeaderText[0];
}
@@ -265,7 +265,7 @@ RifEclipseSummaryAddress RifEclipseUserDataKeywordTools::makeAndFillAddress( con
}
break;
case RifEclipseSummaryAddressDefines::SummaryCategory::SUMMARY_BLOCK:
if ( columnHeaderText.size() > 0 )
if ( !columnHeaderText.empty() )
{
RifEclipseUserDataKeywordTools::extractThreeInts( &cellI, &cellJ, &cellK, columnHeaderText[0] );
}