Skip to content

Commit

Permalink
COMP: Removed redundant type alias.
Browse files Browse the repository at this point in the history
This resolves the following compiler warning:
/localscratch/Users/kjweimer/ITK/Modules/Remote/HASI/include/itkSegmentBonesInMicroCTFilter.hxx:198:87: warning: declaration of ‘using FloatThresholdType = class itk::BinaryThresholdImageFilter<itk::Image<float, itk::SegmentBonesInMicroCTFilter<TInputImage, TOutputImage>::Dimension>, TOutputImage>’ shadows a member of ‘itk::SegmentBonesInMicroCTFilter<TInputImage, TOutputImage>’ [-Wshadow]
  198 |     using FloatThresholdType = BinaryThresholdImageFilter<RealImageType, TOutputImage>;
      |                                                                                       ^
In file included from /localscratch/Users/kjweimer/ITK/Modules/Remote/HASI/test/itkSegmentBonesInMicroCTFilterTest.cxx:19:
/localscratch/Users/kjweimer/ITK/Modules/Remote/HASI/include/itkSegmentBonesInMicroCTFilter.h:89:9: note: shadowed declaration is here
   89 |   using FloatThresholdType = BinaryThresholdImageFilter<RealImageType, TOutputImage>;
      |         ^~~~~~~~~~~~~~~~~~
  • Loading branch information
kian-weimer authored and dzenanz committed Jan 11, 2022
1 parent 3de4a2f commit 9c9cbb7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/itkSegmentBonesInMicroCTFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ SegmentBonesInMicroCTFilter<TInputImage, TOutputImage>::GenerateData()
progress->RegisterInternalFilter(multiScaleFilter, 0.5f);
multiScaleFilter->Update();

using FloatThresholdType = BinaryThresholdImageFilter<RealImageType, TOutputImage>;
typename FloatThresholdType::Pointer descoTh = FloatThresholdType::New();
descoTh->SetInput(multiScaleFilter->GetOutput());
descoTh->SetLowerThreshold(0.1);
Expand Down

0 comments on commit 9c9cbb7

Please sign in to comment.