mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-30 17:10:19 -05:00
Call base addSurface explicitly in RimEnsembleSurface ctor
Explicitly invoke RimSurfaceCollection::addSurface when adding statistic surfaces in RimEnsembleSurface's constructor. This clarifies method resolution and ensures the correct base class implementation is used.
This commit is contained in:
1 parent
5041dffb4d
commit
2a129e3700
1 file changed
+1
-1
@@ -59,7 +59,7 @@ RimEnsembleSurface::RimEnsembleSurface()
|
||||
{
|
||||
auto statSurface = new RimEnsembleStatisticsSurface;
|
||||
statSurface->setStatisticsType( s );
|
||||
addSurface( statSurface );
|
||||
RimSurfaceCollection::addSurface( statSurface );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user