mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Release 2023.06
This commit is contained in:
@@ -163,8 +163,7 @@ void RicCloseCaseFeature::deleteEclipseCase( RimEclipseCase* eclipseCase )
|
||||
// This is done because the views do not work well
|
||||
if ( caseGroup->caseCollection()->reservoirs.size() == 1 )
|
||||
{
|
||||
std::vector<caf::PdmObjectHandle*> children;
|
||||
caseGroup->statisticsCaseCollection()->reservoirs.children( &children );
|
||||
std::vector<caf::PdmObjectHandle*> children = caseGroup->statisticsCaseCollection()->reservoirs.children();
|
||||
|
||||
for ( size_t i = children.size(); i-- > 0; )
|
||||
{
|
||||
@@ -257,8 +256,7 @@ bool RicCloseCaseFeature::userConfirmedGridCaseGroupChange( const std::vector<Ri
|
||||
|
||||
for ( auto caseToDelete : casesToBeDeleted )
|
||||
{
|
||||
RimIdenticalGridCaseGroup* gridCaseGroup = nullptr;
|
||||
caseToDelete->firstAncestorOrThisOfType( gridCaseGroup );
|
||||
RimIdenticalGridCaseGroup* gridCaseGroup = caseToDelete->firstAncestorOrThisOfType<RimIdenticalGridCaseGroup>();
|
||||
|
||||
if ( gridCaseGroup && hasAnyStatisticsResults( gridCaseGroup ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user