Skip to content

Commit 94218d3

Browse files
N-Dekkerdzenanz
authored andcommitted
STYLE: Remove "include guards" from cxx files
Include guards (like `itkSomeFileName_h`) are specifically intended to avoid problems with double inclusion of header files, so they should only be used in *.h and *.hxx files. Corresponding elastix pull request: SuperElastix/elastix#345
1 parent 734d6f8 commit 94218d3

25 files changed

+0
-98
lines changed

Modules/Core/SpatialObjects/src/itkSpatialObjectProperty.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef itkSpatialObjectProperty_cxx
19-
#define itkSpatialObjectProperty_cxx
2018

2119
#include "itkSpatialObjectProperty.h"
2220

@@ -199,5 +197,3 @@ SpatialObjectProperty::PrintSelf(std::ostream & os, Indent indent) const
199197
os << indent << "StringDictionary size: " << m_StringDictionary.size() << std::endl;
200198
}
201199
} // end of namespace itk
202-
203-
#endif // __SpatialObjectProperty_hxx

Modules/IO/GDCM/src/itkGDCMSeriesFileNames.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef _itkGDCMSeriesFileNames_h
19-
#define _itkGDCMSeriesFileNames_h
2018

2119
#include "itkGDCMSeriesFileNames.h"
2220
#include "itksys/SystemTools.hxx"
@@ -301,5 +299,3 @@ GDCMSeriesFileNames::SetUseSeriesDetails(bool useSeriesDetails)
301299
m_SerieHelper->CreateDefaultUniqueSeriesIdentifier();
302300
}
303301
} // namespace itk
304-
305-
#endif

Modules/IO/ImageBase/src/itkArchetypeSeriesFileNames.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef _itkArchetypeSeriesFileNames_h
19-
#define _itkArchetypeSeriesFileNames_h
20-
2118

2219
#include "itkArchetypeSeriesFileNames.h"
2320
#include "itkRegularExpressionSeriesFileNames.h"
@@ -235,5 +232,3 @@ ArchetypeSeriesFileNames::PrintSelf(std::ostream & os, Indent indent) const
235232
}
236233
}
237234
} // namespace itk
238-
239-
#endif

Modules/IO/ImageBase/src/itkNumericSeriesFileNames.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef _itkNumericSeriesFileNames_h
19-
#define _itkNumericSeriesFileNames_h
2018

2119
#include "itkNumericSeriesFileNames.h"
2220
#include <cstdio>
@@ -91,5 +89,3 @@ NumericSeriesFileNames::PrintSelf(std::ostream & os, Indent indent) const
9189
}
9290
}
9391
} // namespace itk
94-
95-
#endif

Modules/IO/ImageBase/src/itkRegularExpressionSeriesFileNames.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef _itkRegularExpressionSeriesFileNames_cxx
19-
#define _itkRegularExpressionSeriesFileNames_cxx
20-
2118

2219
#include <algorithm>
2320

@@ -128,5 +125,3 @@ RegularExpressionSeriesFileNames::PrintSelf(std::ostream & os, Indent indent) co
128125
}
129126
}
130127
} // namespace itk
131-
132-
#endif

Modules/IO/SpatialObjects/src/itkPolygonGroupSpatialObjectXMLFile.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef _itkPolygonGroupSpatialObjectXMLFile_hxx
19-
#define _itkPolygonGroupSpatialObjectXMLFile_hxx
2018

2119
#include "itkPolygonGroupSpatialObjectXMLFile.h"
2220
#include "itksys/SystemTools.hxx"
@@ -270,5 +268,3 @@ PolygonGroupSpatialObjectXMLFileWriter::WriteFile()
270268
return 0;
271269
}
272270
} // namespace itk
273-
274-
#endif

Modules/Numerics/Optimizers/src/itkConjugateGradientOptimizer.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef _itkConjugateGradientOptimizer_hxx
19-
#define _itkConjugateGradientOptimizer_hxx
2018

2119
#include "itkConjugateGradientOptimizer.h"
2220

@@ -159,5 +157,3 @@ ConjugateGradientOptimizer::GetCurrentIteration() const
159157
return m_VnlOptimizer->get_num_iterations();
160158
}
161159
} // end namespace itk
162-
163-
#endif

Modules/Numerics/Optimizers/src/itkCumulativeGaussianCostFunction.cxx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef _itkCumulativeGaussianCostFunction_cxx
19-
#define _itkCumulativeGaussianCostFunction_cxx
2018

2119
#include "itkCumulativeGaussianCostFunction.h"
2220
#include "itkMath.h"
@@ -210,4 +208,3 @@ CumulativeGaussianCostFunction::PrintSelf(std::ostream & os, Indent indent) cons
210208
os << indent << "Range Dimension = " << m_RangeDimension << std::endl;
211209
}
212210
} // end namespace itk
213-
#endif

Modules/Numerics/Optimizers/src/itkCumulativeGaussianOptimizer.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef _itkCumulativeGaussianOptimizer_cxx
19-
#define _itkCumulativeGaussianOptimizer_cxx
2018

2119
#include "itkCumulativeGaussianOptimizer.h"
2220
#include "itkMath.h"
@@ -408,5 +406,3 @@ CumulativeGaussianOptimizer::PrintSelf(std::ostream & os, Indent indent) const
408406
}
409407
}
410408
} // end namespace itk
411-
412-
#endif

Modules/Numerics/Optimizers/src/itkFRPROptimizer.cxx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* limitations under the License.
1616
*
1717
*=========================================================================*/
18-
#ifndef _itkFRPROptimizer_cxx
19-
#define _itkFRPROptimizer_cxx
2018

2119
#include "itkFRPROptimizer.h"
2220

@@ -249,4 +247,3 @@ operator<<(std::ostream & out, const FRPROptimizerEnums::Optimization value)
249247
}
250248

251249
} // end of namespace itk
252-
#endif

0 commit comments

Comments
 (0)