mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(clang-tidy) : modernize-use-nullptr
This commit is contained in:
@@ -49,7 +49,7 @@ void RicAppendIntersectionFeature::onActionTriggered(bool isChecked)
|
||||
caf::SelectionManager::instance()->objectsByType(&collection);
|
||||
CVF_ASSERT(collection.size() == 1);
|
||||
|
||||
RimIntersectionCollection* intersectionCollection = NULL;
|
||||
RimIntersectionCollection* intersectionCollection = nullptr;
|
||||
collection[0]->firstAncestorOrThisOfType(intersectionCollection);
|
||||
|
||||
CVF_ASSERT(intersectionCollection);
|
||||
@@ -71,7 +71,7 @@ void RicAppendIntersectionFeature::setupActionLook(QAction* actionToSetup)
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicAppendIntersectionFeatureCmd::RicAppendIntersectionFeatureCmd(RimIntersectionCollection* intersectionCollection)
|
||||
: CmdExecuteCommand(NULL),
|
||||
: CmdExecuteCommand(nullptr),
|
||||
m_intersectionCollection(intersectionCollection)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@ void RicNewAzimuthDipIntersectionFeature::setupActionLook(QAction* actionToSetup
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicNewAzimuthDipIntersectionFeatureCmd::RicNewAzimuthDipIntersectionFeatureCmd(RimIntersectionCollection* intersectionCollection)
|
||||
: CmdExecuteCommand(NULL),
|
||||
: CmdExecuteCommand(nullptr),
|
||||
m_intersectionCollection(intersectionCollection)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -80,7 +80,7 @@ void RicNewPolylineIntersectionFeature::setupActionLook(QAction* actionToSetup)
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicNewPolylineIntersectionFeatureCmd::RicNewPolylineIntersectionFeatureCmd(RimIntersectionCollection* intersectionCollection)
|
||||
: CmdExecuteCommand(NULL),
|
||||
: CmdExecuteCommand(nullptr),
|
||||
m_intersectionCollection(intersectionCollection)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ void RicNewSimWellIntersectionFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
RimSimWellInView* simWell = collection[0];
|
||||
|
||||
RimEclipseView* eclView = NULL;
|
||||
RimEclipseView* eclView = nullptr;
|
||||
simWell->firstAncestorOrThisOfType(eclView);
|
||||
CVF_ASSERT(eclView);
|
||||
|
||||
@@ -73,7 +73,7 @@ void RicNewSimWellIntersectionFeature::setupActionLook(QAction* actionToSetup)
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicNewSimWellIntersectionCmd::RicNewSimWellIntersectionCmd(RimIntersectionCollection* intersectionCollection, RimSimWellInView* simWell)
|
||||
: CmdExecuteCommand(NULL),
|
||||
: CmdExecuteCommand(nullptr),
|
||||
m_intersectionCollection(intersectionCollection),
|
||||
m_simWell(simWell)
|
||||
{
|
||||
|
||||
@@ -82,7 +82,7 @@ void RicNewWellPathIntersectionFeature::setupActionLook(QAction* actionToSetup)
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RicNewWellPathIntersectionFeatureCmd::RicNewWellPathIntersectionFeatureCmd(RimIntersectionCollection* intersectionCollection, RimWellPath* wellPath)
|
||||
: CmdExecuteCommand(NULL),
|
||||
: CmdExecuteCommand(nullptr),
|
||||
m_intersectionCollection(intersectionCollection),
|
||||
m_wellPath(wellPath)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user