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:
@@ -208,7 +208,7 @@ void RimSimWellFracture::updateFracturePositionFromLocation()
|
||||
{
|
||||
computeSimWellBranchesIfRequired();
|
||||
|
||||
if ( m_branchCenterLines.size() > 0 )
|
||||
if ( !m_branchCenterLines.empty() )
|
||||
{
|
||||
cvf::Vec3d interpolated = m_branchCenterLines[m_branchIndex()].interpolatedPointAlongWellPath( m_location() );
|
||||
|
||||
@@ -266,7 +266,7 @@ void RimSimWellFracture::defineEditorAttribute( const caf::PdmFieldHandle* field
|
||||
{
|
||||
computeSimWellBranchesIfRequired();
|
||||
|
||||
if ( m_branchCenterLines.size() > 0 )
|
||||
if ( !m_branchCenterLines.empty() )
|
||||
{
|
||||
const RigSimulationWellCoordsAndMD& pointAndMd = m_branchCenterLines[m_branchIndex];
|
||||
|
||||
@@ -287,12 +287,12 @@ QList<caf::PdmOptionItemInfo> RimSimWellFracture::calculateValueOptions( const c
|
||||
|
||||
if ( fieldNeedingOptions == &m_branchIndex )
|
||||
{
|
||||
if ( m_branchCenterLines.size() == 0 )
|
||||
if ( m_branchCenterLines.empty() )
|
||||
{
|
||||
computeSimWellBranchesIfRequired();
|
||||
}
|
||||
|
||||
if ( m_branchCenterLines.size() > 0 )
|
||||
if ( !m_branchCenterLines.empty() )
|
||||
{
|
||||
size_t branchCount = m_branchCenterLines.size();
|
||||
|
||||
@@ -324,7 +324,7 @@ RigMainGrid* RimSimWellFracture::ownerCaseMainGrid() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSimWellFracture::computeSimWellBranchesIfRequired()
|
||||
{
|
||||
if ( m_branchCenterLines.size() == 0 )
|
||||
if ( m_branchCenterLines.empty() )
|
||||
{
|
||||
computeSimWellBranchCenterLines();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user