mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CppCheck : Several fixes
Add missing initializers Guard potential null pointer access
This commit is contained in:
@@ -60,7 +60,7 @@ void RicWellLogFileCloseFeature::onActionTriggered(bool isChecked)
|
||||
RimWellPath* parentWellPath;
|
||||
wellLogFile->firstAncestorOrThisOfType(parentWellPath);
|
||||
|
||||
if (parentWellPath != nullptr)
|
||||
if (parentWellPath)
|
||||
{
|
||||
std::set<RimViewWindow*> referringPlots = referringWellLogPlots(wellLogFile);
|
||||
parentWellPath->deleteWellLogFile(wellLogFile);
|
||||
@@ -69,8 +69,9 @@ void RicWellLogFileCloseFeature::onActionTriggered(bool isChecked)
|
||||
{
|
||||
plot->loadDataAndUpdate();
|
||||
}
|
||||
|
||||
parentWellPath->updateConnectedEditors();
|
||||
}
|
||||
parentWellPath->updateConnectedEditors();
|
||||
}
|
||||
|
||||
caf::PdmUiObjectEditorHandle::updateUiAllObjectEditors();
|
||||
|
||||
Reference in New Issue
Block a user