Skip to content

Commit a99cce8

Browse files
committed
STYLE: Replace itkStaticConstMacro with static constexpr
Use static constexpr directly now that C++11 conformance is required by all compilers. :%s/itkStaticConstMacro *( *\([^,]*\),[ \_s]*\([^,]*\),\_s*\([^)]*\)) */static constexpr \2 \1 = \3/ge
1 parent 659fede commit a99cce8

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

include/itkCoocurrenceTextureFeaturesImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class ITK_TEMPLATE_EXPORT CoocurrenceTextureFeaturesImageFilter
134134

135135

136136
/** Specify the default number of bins per axis */
137-
itkStaticConstMacro( DefaultBinsPerAxis, unsigned int, 256 );
137+
static constexpr unsigned int DefaultBinsPerAxis = 256 ;
138138

139139
/**
140140
* Set the offsets over which the intensities pairs will be computed.

include/itkFirstOrderTextureFeaturesImageFilter.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ class ITK_TEMPLATE_EXPORT FirstOrderTextureFeaturesImageFilter:
8383
typedef typename TOutputImage::PixelType OutputPixelType;
8484

8585
/** Image related typedefs. */
86-
itkStaticConstMacro(ImageDimension, unsigned int,
87-
TInputImage::ImageDimension);
86+
static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
8887
protected:
8988

9089
unsigned int GetNumberOfOutputComponents() { return 8;}

include/itkRunLengthTextureFeaturesImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class ITK_TEMPLATE_EXPORT RunLengthTextureFeaturesImageFilter
147147

148148

149149
/** Specify the default number of bins per axis */
150-
itkStaticConstMacro( DefaultBinsPerAxis, unsigned int, 256 );
150+
static constexpr unsigned int DefaultBinsPerAxis = 256 ;
151151

152152
/**
153153
* Set the offsets over which the intensity/distance pairs will be computed.

0 commit comments

Comments
 (0)