Skip to content

Commit b88892a

Browse files
committed
COMP: Use one definition rule for constants.
1 parent c88693b commit b88892a

File tree

3 files changed

+12
-23
lines changed

3 files changed

+12
-23
lines changed

include/itkAnalyzeObjectEntry.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,18 @@
3333

3434
namespace itk
3535
{
36+
constexpr const char * const ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY{"ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY"};
37+
/**
38+
* Constants representing the current version number of the object map file for Analyze
39+
*/
40+
constexpr int VERSION1{880102};
41+
constexpr int VERSION2{880801};
42+
constexpr int VERSION3{890102};
43+
constexpr int VERSION4{900302};
44+
constexpr int VERSION5{910402};
45+
constexpr int VERSION6{910926};
46+
constexpr int VERSION7{20050829};
47+
3648

3749
/**
3850
* \class AnalyzeObjectEntry

include/itkAnalyzeObjectLabelMapImageIO.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,6 @@
3131
namespace itk
3232
{
3333
using AnalyzeObjectEntryArrayType = std::vector<AnalyzeObjectEntry::Pointer>;
34-
const char * const ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY = "ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY";
35-
/**
36-
* Constants representing the current version number of the object map file for Analyze
37-
*/
38-
constexpr int VERSION1 = 880102;
39-
constexpr int VERSION2 = 880801;
40-
constexpr int VERSION3 = 890102;
41-
static const int VERSION4 = 900302;
42-
static const int VERSION5 = 910402;
43-
static const int VERSION6 = 910926;
44-
static const int VERSION7 = 20050829;
4534

4635
/**
4736
* Buffer size for reading in the run length encoded object data

include/itkAnalyzeObjectMap.h

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@
2727
#include "itkMetaDataObject.h"
2828
#include "itkThresholdImageFilter.h"
2929

30-
constexpr char * const ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY = "ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY";
31-
/**
32-
* Constants representing the current version number of the object map file for Analyze
33-
*/
34-
constexpr int VERSION1 = 880102;
35-
constexpr int VERSION2 = 880801;
36-
constexpr int VERSION3 = 890102;
37-
constexpr int VERSION4 = 900302;
38-
constexpr int VERSION5 = 910402;
39-
constexpr int VERSION6 = 910926;
40-
constexpr int VERSION7 = 20050829;
41-
4230
namespace itk
4331
{
4432

0 commit comments

Comments
 (0)