mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02: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
@@ -182,7 +182,7 @@ std::pair<bool, bool> RimGeoMechPartCollection::needsReloadOrRebuildUpdate( int
|
||||
bool missingDisplacement = false;
|
||||
for ( const auto& part : m_parts )
|
||||
{
|
||||
missingDisplacement = missingDisplacement || ( part->displacements().size() == 0 );
|
||||
missingDisplacement = missingDisplacement || ( part->displacements().empty() );
|
||||
}
|
||||
|
||||
rebuild = rebuild || missingDisplacement;
|
||||
|
||||
@@ -362,7 +362,7 @@ void RimGeoMechResultDefinition::fieldChangedByUi( const caf::PdmFieldHandle* ch
|
||||
&m_normalizationAirGap == changedField || &m_referenceTimeStep == changedField || &m_isChecked == changedField )
|
||||
{
|
||||
QStringList fieldComponentNames = m_resultVariableUiField().split( QRegExp( "\\s+" ) );
|
||||
if ( fieldComponentNames.size() > 0 )
|
||||
if ( !fieldComponentNames.empty() )
|
||||
{
|
||||
m_resultPositionType = m_resultPositionTypeUiField;
|
||||
if ( m_resultPositionType() == RIG_FORMATION_NAMES )
|
||||
|
||||
Reference in new issue
Block a user