Skip to content

Commit

Permalink
STYLE: Replace #include <cstdint> with #include "itkIntTypes.h"
Browse files Browse the repository at this point in the history
"itkIntTypes.h" adds aliases of the types from `<cstdint>` to the `itk`
namespace, allowing those types to be used without `std::` prefix.

Suggested by Lee Newberg.
  • Loading branch information
N-Dekker authored and dzenanz committed Jan 10, 2024
1 parent ed4b29d commit c8ec91c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#ifndef itkConnectedImageNeighborhoodShape_h
#define itkConnectedImageNeighborhoodShape_h

#include "itkIntTypes.h" // For uintmax_t
#include "itkMath.h"
#include "itkOffset.h"

#include <array>
#include <cassert>
#include <cstdint> // For uintmax_t
#include <limits>

namespace itk
Expand Down
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkSpatialOrientation.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#ifndef itkSpatialOrientation_h
#define itkSpatialOrientation_h

#include <cstdint>
#include "itkIntTypes.h"
#include <ostream>

#include "ITKCommonExport.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@
#ifndef itkImageMaskSpatialObject_hxx
#define itkImageMaskSpatialObject_hxx

#include "itkIntTypes.h" // For uintmax_t.
#include "itkMath.h"
#include "itkImageRegionRange.h"

#include <cstdint> // For uintmax_t.

namespace itk
{

Expand Down

0 comments on commit c8ec91c

Please sign in to comment.