Skip to content

Commit

Permalink
COMP: Remove inclusion of .hxx files as headers
Browse files Browse the repository at this point in the history
The ability to include either .h or .hxx files as
header files required recursively reading the
.h files twice.  The added complexity is
unnecessary, costly, and can confuse static
analysis tools that monitor header guardes (due
to reaching the maximum depth of recursion
limits for nested #ifdefs in checking).
  • Loading branch information
hjmjohnson authored and dzenanz committed Dec 27, 2021
1 parent 41930d2 commit 28ec5eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions include/itkRLEImage.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
#define itkRLEImage_hxx

#include "itkImageRegionIterator.h" // for underlying buffer
#include "itkRLEImage.h"

// include all specializations of iterators and filters
// so only #include <itkRLEImage.h> is needed in user code
#include "itkRLEImageRegionIterator.h"
#include "itkRLEImageScanlineIterator.h"
#include "itkRLERegionOfInterestImageFilter.h"
Expand Down
1 change: 0 additions & 1 deletion include/itkRLERegionOfInterestImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#ifndef itkRLERegionOfInterestImageFilter_hxx
#define itkRLERegionOfInterestImageFilter_hxx

#include "itkRLERegionOfInterestImageFilter.h"

#include "itkImage.h"
#include "itkImageAlgorithm.h"
Expand Down

0 comments on commit 28ec5eb

Please sign in to comment.