Skip to content

Commit

Permalink
COMP: Use nullptr instead of 0 or NULL
Browse files Browse the repository at this point in the history
The check converts the usage of null pointer constants (eg. NULL, 0) to
use the new C++11 nullptr keyword.

SRCDIR= #My local SRC
BLDDIR= #My local BLD

cd
run-clang-tidy.py -extra-arg=-D__clang__ -checks=-*,modernize-use-nullptr  -header-filter=.* -fix
  • Loading branch information
hjmjohnson committed Feb 19, 2020
1 parent 5c6857d commit 004fe21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/itkBSplineApproximationGradientImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ BSplineApproximationGradientImageFilter<TInputImage, TOutputValueType>::Generate
Superclass::GenerateInputRequestedRegion();

typename InputImageType::Pointer input = const_cast<InputImageType *>(this->GetInput());
if (input.GetPointer() == NULL)
if (input.GetPointer() == nullptr)
{
return;
}
Expand All @@ -76,7 +76,7 @@ BSplineApproximationGradientImageFilter<TInputImage, TOutputValueType>::Generate
{
typename InputImageType::ConstPointer input = this->GetInput();

if (input.GetPointer() == NULL)
if (input.GetPointer() == nullptr)
{
return;
}
Expand Down

0 comments on commit 004fe21

Please sign in to comment.