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:
@@ -32,7 +32,7 @@ RigGridBase::RigGridBase(RigMainGrid* mainGrid):
|
||||
m_mainGrid(mainGrid),
|
||||
m_indexToStartOfCells(0)
|
||||
{
|
||||
if (mainGrid == NULL)
|
||||
if (mainGrid == nullptr)
|
||||
{
|
||||
m_gridIndex = 0;
|
||||
m_gridId = 0;
|
||||
@@ -493,7 +493,7 @@ bool RigGridCellFaceVisibilityFilter::isFaceVisible(size_t i, size_t j, size_t k
|
||||
}
|
||||
|
||||
// If the neighbour cell is invisible, we need to draw the face
|
||||
if ((cellVisibility != NULL) && !(*cellVisibility)[neighborCellIndex])
|
||||
if ((cellVisibility != nullptr) && !(*cellVisibility)[neighborCellIndex])
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user