mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor code
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user