Skip to content

Commit

Permalink
STYLE: Replace itkStaticConstMacro ImageSink, BinaryGeneratorImageFilter
Browse files Browse the repository at this point in the history
Replaced the remaining `itkStaticConstMacro` calls in ITK, from the
header files of `ImageSink` and `BinaryGeneratorImageFilter`, by the
corresponding `static constexpr` member declarations.

Follow-up to commit 5c14741
"STYLE: Replace itkStaticConstMacro with static constexpr", by
Hans Johnson, 2 February 2018.
  • Loading branch information
N-Dekker committed Sep 26, 2021
1 parent 4408bd4 commit f4e12a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkImageSink.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class ImageSink
using typename Superclass::DataObjectIdentifierType;

/** Dimension of input images. */
itkStaticConstMacro(InputImageDimension, unsigned int, InputImageType::ImageDimension);
static constexpr unsigned int InputImageDimension = InputImageType::ImageDimension;


using Superclass::SetInput;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ class ITK_TEMPLATE_EXPORT BinaryGeneratorImageFilter : public InPlaceImageFilter


/** ImageDimension constants */
itkStaticConstMacro(InputImage1Dimension, unsigned int, TInputImage1::ImageDimension);
itkStaticConstMacro(InputImage2Dimension, unsigned int, TInputImage2::ImageDimension);
itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
static constexpr unsigned int InputImage1Dimension = TInputImage1::ImageDimension;
static constexpr unsigned int InputImage2Dimension = TInputImage2::ImageDimension;
static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;

#ifdef ITK_USE_CONCEPT_CHECKING
// Begin concept checking
Expand Down

0 comments on commit f4e12a0

Please sign in to comment.