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

@@ -52,12 +52,14 @@ void RicEditSummaryPlotFeature::closeDialogAndResetTargetPlot()
{
auto dialog = RicEditSummaryPlotFeature::curveCreatorDialog();
if ( dialog && dialog->isVisible() )
if ( dialog )
{
dialog->hide();
if ( dialog->isVisible() )
{
dialog->hide();
}
dialog->updateFromSummaryPlot( nullptr );
}
dialog->updateFromSummaryPlot( nullptr );
}
//--------------------------------------------------------------------------------------------------