Refactor code

This commit is contained in:
Magne Sjaastad
2021-11-16 09:23:45 +01:00
parent bc906f737c
commit 21fd4f74b5
5 changed files with 423 additions and 376 deletions

View File

@@ -63,10 +63,10 @@ caf::PdmObjectHandle* RimcSummaryPlotCollection_newSummaryPlot::execute()
{
if ( !addressStrings.empty() )
{
newPlot = RicSummaryPlotFeatureImpl::createSummaryPlotFromAddresses( self<RimSummaryPlotCollection>(),
std::vector<RimSummaryCase*>(),
m_ensemble,
addressStrings );
newPlot = RicSummaryPlotFeatureImpl::createSummaryPlotForEnsemble( self<RimSummaryPlotCollection>(),
std::vector<RimSummaryCase*>(),
m_ensemble,
addressStrings );
}
else
{
@@ -78,10 +78,9 @@ caf::PdmObjectHandle* RimcSummaryPlotCollection_newSummaryPlot::execute()
std::vector<RimSummaryCase*> summaryCases = m_summaryCases.ptrReferencedObjects();
if ( !addressStrings.empty() )
{
newPlot = RicSummaryPlotFeatureImpl::createSummaryPlotFromAddresses( self<RimSummaryPlotCollection>(),
summaryCases,
nullptr,
addressStrings );
newPlot = RicSummaryPlotFeatureImpl::createSummaryPlotForCases( self<RimSummaryPlotCollection>(),
summaryCases,
addressStrings );
}
else
{