From c8ec91c826898838f5f1a1a2a53849dd3efc9c88 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Tue, 9 Jan 2024 15:51:53 +0100 Subject: [PATCH] STYLE: Replace `#include ` with `#include "itkIntTypes.h"` "itkIntTypes.h" adds aliases of the types from `` to the `itk` namespace, allowing those types to be used without `std::` prefix. Suggested by Lee Newberg. --- .../Core/Common/include/itkConnectedImageNeighborhoodShape.h | 2 +- Modules/Core/Common/include/itkSpatialOrientation.h | 2 +- .../Core/SpatialObjects/include/itkImageMaskSpatialObject.hxx | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Modules/Core/Common/include/itkConnectedImageNeighborhoodShape.h b/Modules/Core/Common/include/itkConnectedImageNeighborhoodShape.h index 6ba76c593af..19eb29a0a12 100644 --- a/Modules/Core/Common/include/itkConnectedImageNeighborhoodShape.h +++ b/Modules/Core/Common/include/itkConnectedImageNeighborhoodShape.h @@ -19,12 +19,12 @@ #ifndef itkConnectedImageNeighborhoodShape_h #define itkConnectedImageNeighborhoodShape_h +#include "itkIntTypes.h" // For uintmax_t #include "itkMath.h" #include "itkOffset.h" #include #include -#include // For uintmax_t #include namespace itk diff --git a/Modules/Core/Common/include/itkSpatialOrientation.h b/Modules/Core/Common/include/itkSpatialOrientation.h index ae41e35edd5..50d345f491e 100644 --- a/Modules/Core/Common/include/itkSpatialOrientation.h +++ b/Modules/Core/Common/include/itkSpatialOrientation.h @@ -28,7 +28,7 @@ #ifndef itkSpatialOrientation_h #define itkSpatialOrientation_h -#include +#include "itkIntTypes.h" #include #include "ITKCommonExport.h" diff --git a/Modules/Core/SpatialObjects/include/itkImageMaskSpatialObject.hxx b/Modules/Core/SpatialObjects/include/itkImageMaskSpatialObject.hxx index a2229d18b77..23d006a37dc 100644 --- a/Modules/Core/SpatialObjects/include/itkImageMaskSpatialObject.hxx +++ b/Modules/Core/SpatialObjects/include/itkImageMaskSpatialObject.hxx @@ -18,11 +18,10 @@ #ifndef itkImageMaskSpatialObject_hxx #define itkImageMaskSpatialObject_hxx +#include "itkIntTypes.h" // For uintmax_t. #include "itkMath.h" #include "itkImageRegionRange.h" -#include // For uintmax_t. - namespace itk {