Janitor : Several fixes by clang-tidy and use of clang compiler

This commit is contained in:
Magne Sjaastad
2021-04-05 18:18:34 +02:00
parent b01569869a
commit d754ef4705
36 changed files with 185 additions and 141 deletions

View File

@@ -87,13 +87,14 @@ void RicNewAnalysisPlotFeature::onActionTriggered( bool isChecked )
newPlot = analysisPlotColl->createAnalysisPlot( ensemble, quantityName, timeStep );
}
}
else
if ( !newPlot && analysisPlotColl )
{
newPlot = analysisPlotColl->createAnalysisPlot();
}
newPlot->loadDataAndUpdate();
analysisPlotColl->updateConnectedEditors();
if ( analysisPlotColl ) analysisPlotColl->updateConnectedEditors();
RiuPlotMainWindowTools::setExpanded( newPlot );
RiuPlotMainWindowTools::selectAsCurrentItem( newPlot );