Skip to content

Commit 5ff0e26

Browse files
committed
COMP: Use nullptr instead of 0 or NULL
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 clang-tidy -p ${BLD} $(find Modules/[A-J]* -name "*.cxx" \|fgrep -v ThirdParty) -checks=-*,modernize-use-nullptr -header-filter=.* -fix clang-tidy -p ${BLD} $(find Modules/[K-Z]* -name "*.cxx" \|fgrep -v ThirdParty) -checks=-*,modernize-use-nullptr -header-filter=.* -fix
1 parent 6fc3d3c commit 5ff0e26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/itkSingleImageCostFunction.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ template <class TImage>
3030
SingleImageCostFunction<TImage>
3131
::SingleImageCostFunction()
3232
{
33-
m_Image = 0; // Provided by user
34-
m_Interpolator = 0; // Configured in Initialize()
35-
m_GradientImageFunction = 0; // Configured in Initialize()
33+
m_Image = nullptr; // Provided by user
34+
m_Interpolator = nullptr; // Configured in Initialize()
35+
m_GradientImageFunction = nullptr; // Configured in Initialize()
3636
}
3737

3838

include/itkSpeedFunctionToPathFilter.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ template <class TInputImage, class TOutputPath>
3333
SpeedFunctionToPathFilter<TInputImage,TOutputPath>
3434
::SpeedFunctionToPathFilter()
3535
{
36-
m_CurrentArrivalFunction = NULL;
36+
m_CurrentArrivalFunction = nullptr;
3737
}
3838

3939

0 commit comments

Comments
 (0)