mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
#10649 ApplicationLibCode: Use collection.empty() instead of comparing with size
This commit is contained in:
1 parent
98796b0dd9
commit
959c9d48fa
220 files changed
+432
-431
No files matched your search
@@ -293,7 +293,7 @@ QList<caf::PdmOptionItemInfo> RimWellDistributionPlotCollection::calculateValueO
|
||||
{
|
||||
RimTools::timeStepsForCase( m_case, &options );
|
||||
|
||||
if ( options.size() == 0 )
|
||||
if ( options.empty() )
|
||||
{
|
||||
options.push_back( caf::PdmOptionItemInfo( "None", -1 ) );
|
||||
}
|
||||
@@ -311,7 +311,7 @@ QList<caf::PdmOptionItemInfo> RimWellDistributionPlotCollection::calculateValueO
|
||||
}
|
||||
}
|
||||
|
||||
if ( options.size() == 0 )
|
||||
if ( options.empty() )
|
||||
{
|
||||
options.push_back( caf::PdmOptionItemInfo( "None", QVariant() ) );
|
||||
}
|
||||
@@ -451,7 +451,7 @@ void RimWellDistributionPlotCollection::fixupDependentFieldsAfterCaseChange()
|
||||
}
|
||||
|
||||
const std::set<QString> sortedWellNameSet = m_case->eclipseCaseData()->findSortedWellNames();
|
||||
if ( sortedWellNameSet.size() > 0 )
|
||||
if ( !sortedWellNameSet.empty() )
|
||||
{
|
||||
newWellName = *sortedWellNameSet.begin();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user