(clang-tidy) : modernize-use-nullptr

This commit is contained in:
Magne Sjaastad
2018-02-18 18:56:43 +01:00
parent 69875eec8f
commit 1ae30ef11a
195 changed files with 552 additions and 552 deletions

View File

@@ -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;
}