Skip to content

Commit 3c6372b

Browse files
committed
COMP: Use C++11 nullptr directly
git grep -l "ITK_NULLPTR" | fgrep -v itk_compiler_detection.h | fgrep -v itkMacro.h | fgrep -v CMakeLists.txt |fgrep -v .cmake | xargs sed -i '' -e "s/ITK_NULLPTR/nullptr/g" Change-Id: I8646354381b2e6f50527993b610208d4715ef26c
1 parent 8f7f49b commit 3c6372b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Examples/RegistrationITKv3/ImageRegistrationHistogramPlotter.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ class CommandIterationUpdate : public itk::Command
412412
void Execute(const itk::Object * object, const itk::EventObject & event)
413413
{
414414
OptimizerPointer optimizer = static_cast< OptimizerPointer >( object );
415-
if( ! itk::IterationEvent().CheckEvent( &event ) || optimizer == ITK_NULLPTR )
415+
if( ! itk::IterationEvent().CheckEvent( &event ) || optimizer == nullptr )
416416
{
417417
return;
418418
}

Modules/Core/ImageFunction/include/itkNeighborhoodOperatorImageFunction.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ NeighborhoodOperatorImageFunction< TInputImage, TOutput >
5151
NeighborhoodInnerProduct< InputImageType, TOutput, TOutput > smartInnerProduct;
5252

5353
const TInputImage* const image = this->GetInputImage();
54-
assert(image != ITK_NULLPTR);
54+
assert(image != nullptr);
5555
ConstNeighborhoodIterator< InputImageType > bit( m_Operator.GetRadius(), image, image->GetRequestedRegion() );
5656
bit.SetLocation(index);
5757

Modules/Core/Transform/include/itkv3Rigid3DTransform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class ITK_TEMPLATE_EXPORT Rigid3DTransform:
120120
InverseTransformBasePointer GetInverseTransform() const ITK_OVERRIDE
121121
{
122122
Pointer inv = New();
123-
return this->GetInverse(inv) ? inv.GetPointer() : ITK_NULLPTR;
123+
return this->GetInverse(inv) ? inv.GetPointer() : nullptr;
124124
}
125125

126126
protected:

0 commit comments

Comments
 (0)