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 20, 2020
1 parent 5bcba46 commit 8577cdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/itkPhaseCorrelationImageRegistrationMethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class ITK_TEMPLATE_EXPORT PhaseCorrelationImageRegistrationMethod : public Proce
}
else
{
return 0;
return nullptr;
}
}
virtual ComplexConjugateImageType *
Expand All @@ -358,7 +358,7 @@ class ITK_TEMPLATE_EXPORT PhaseCorrelationImageRegistrationMethod : public Proce
}
else
{
return 0;
return nullptr;
}
}

Expand Down

0 comments on commit 8577cdf

Please sign in to comment.