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:
Magne Sjaastad committed 2026-01-20 18:21:56 +01:00
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 );
}
}