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:
@@ -174,7 +174,7 @@ bool transferGridCellData(RigMainGrid* mainGrid, RigActiveCellInfo* activeCellIn
|
||||
|
||||
// Sub grid in cell
|
||||
const ecl_grid_type* subGrid = ecl_grid_get_cell_lgr1(localEclGrid, gridLocalCellIndex);
|
||||
if (subGrid != NULL)
|
||||
if (subGrid != nullptr)
|
||||
{
|
||||
int subGridId = ecl_grid_get_lgr_nr(subGrid);
|
||||
CVF_ASSERT(subGridId > 0);
|
||||
@@ -208,10 +208,10 @@ RifReaderEclipseOutput::RifReaderEclipseOutput()
|
||||
m_fileName.clear();
|
||||
m_filesWithSameBaseName.clear();
|
||||
|
||||
m_eclipseCase = NULL;
|
||||
m_eclipseCase = nullptr;
|
||||
|
||||
m_ecl_init_file = NULL;
|
||||
m_dynamicResultsAccess = NULL;
|
||||
m_ecl_init_file = nullptr;
|
||||
m_dynamicResultsAccess = nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -223,7 +223,7 @@ RifReaderEclipseOutput::~RifReaderEclipseOutput()
|
||||
{
|
||||
ecl_file_close(m_ecl_init_file);
|
||||
}
|
||||
m_ecl_init_file = NULL;
|
||||
m_ecl_init_file = nullptr;
|
||||
|
||||
if (m_dynamicResultsAccess.notNull())
|
||||
{
|
||||
@@ -1634,7 +1634,7 @@ void RifReaderEclipseOutput::readWellCells(const ecl_grid_type* mainEclGrid, boo
|
||||
|
||||
if (well_segment_get_outlet_id(segment) == -1)
|
||||
{
|
||||
segment = NULL;
|
||||
segment = nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1696,11 +1696,11 @@ void RifReaderEclipseOutput::readWellCells(const ecl_grid_type* mainEclGrid, boo
|
||||
accLengthFromLastConnection += well_segment_get_length(outletSegment);
|
||||
segmentIdBelow = well_segment_get_id(outletSegment);
|
||||
|
||||
const well_segment_type* aboveOutletSegment = NULL;
|
||||
const well_segment_type* aboveOutletSegment = nullptr;
|
||||
|
||||
if (well_segment_get_outlet_id(outletSegment) == -1)
|
||||
{
|
||||
aboveOutletSegment = NULL;
|
||||
aboveOutletSegment = nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1740,7 +1740,7 @@ void RifReaderEclipseOutput::readWellCells(const ecl_grid_type* mainEclGrid, boo
|
||||
|
||||
if (well_segment_get_outlet_id(aboveOutletSegment) == -1)
|
||||
{
|
||||
aboveOutletSegment = NULL;
|
||||
aboveOutletSegment = nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user