#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

@@ -189,7 +189,7 @@ size_t RigEclipseCaseData::gridCount() const
void RigEclipseCaseData::computeWellCellsPrGrid()
{
// If we have computed this already, return
if ( m_wellCellsInGrid.size() ) return;
if ( !m_wellCellsInGrid.empty() ) return;
std::vector<RigGridBase*> grids;
allGrids( &grids );
@@ -650,7 +650,7 @@ void RigEclipseCaseData::computeActiveCellsGeometryBoundingBox()
for ( int acIdx = 0; acIdx < 2; ++acIdx )
{
bb.reset();
if ( m_mainGrid->nodes().size() == 0 )
if ( m_mainGrid->nodes().empty() )
{
bb.add( cvf::Vec3d::ZERO );
}