Skip to content

Commit

Permalink
COMP: Use one definition rule for constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Feb 29, 2020
1 parent c88693b commit b88892a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 deletions.
12 changes: 12 additions & 0 deletions include/itkAnalyzeObjectEntry.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@

namespace itk
{
constexpr const char * const ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY{"ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY"};
/**
* Constants representing the current version number of the object map file for Analyze
*/
constexpr int VERSION1{880102};
constexpr int VERSION2{880801};
constexpr int VERSION3{890102};
constexpr int VERSION4{900302};
constexpr int VERSION5{910402};
constexpr int VERSION6{910926};
constexpr int VERSION7{20050829};


/**
* \class AnalyzeObjectEntry
Expand Down
11 changes: 0 additions & 11 deletions include/itkAnalyzeObjectLabelMapImageIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,6 @@
namespace itk
{
using AnalyzeObjectEntryArrayType = std::vector<AnalyzeObjectEntry::Pointer>;
const char * const ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY = "ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY";
/**
* Constants representing the current version number of the object map file for Analyze
*/
constexpr int VERSION1 = 880102;
constexpr int VERSION2 = 880801;
constexpr int VERSION3 = 890102;
static const int VERSION4 = 900302;
static const int VERSION5 = 910402;
static const int VERSION6 = 910926;
static const int VERSION7 = 20050829;

/**
* Buffer size for reading in the run length encoded object data
Expand Down
12 changes: 0 additions & 12 deletions include/itkAnalyzeObjectMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,6 @@
#include "itkMetaDataObject.h"
#include "itkThresholdImageFilter.h"

constexpr char * const ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY = "ANALYZE_OBJECT_LABEL_MAP_ENTRY_ARRAY";
/**
* Constants representing the current version number of the object map file for Analyze
*/
constexpr int VERSION1 = 880102;
constexpr int VERSION2 = 880801;
constexpr int VERSION3 = 890102;
constexpr int VERSION4 = 900302;
constexpr int VERSION5 = 910402;
constexpr int VERSION6 = 910926;
constexpr int VERSION7 = 20050829;

namespace itk
{

Expand Down

0 comments on commit b88892a

Please sign in to comment.