Skip to content

Commit

Permalink
COMP: Add missing const qualifier
Browse files Browse the repository at this point in the history
The ImageSink::SetNumberOfStreamDivisions method generated by
itkSetMacro has a const argument. The derived overrides ( needed
for Python wrapping ) omitted the qualifier producing a "did not
override" warning.
  • Loading branch information
blowekamp committed May 13, 2020
1 parent d3286c9 commit 8c4d3da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class ITK_TEMPLATE_EXPORT LabelStatisticsImageFilter : public ImageSink<TInputIm
// Change the access from protected to public to expose streaming option, a using statement can not be used due to
// limitations of wrapping.
void
SetNumberOfStreamDivisions(unsigned int n) override
SetNumberOfStreamDivisions(const unsigned int n) override
{
Superclass::SetNumberOfStreamDivisions(n);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ITK_TEMPLATE_EXPORT MinimumMaximumImageFilter : public ImageSink<TInputIma
// Change the access from protected to public to expose streaming option, a using statement can not be used due to
// limitations of wrapping.
void
SetNumberOfStreamDivisions(unsigned int n) override
SetNumberOfStreamDivisions(const unsigned int n) override
{
Superclass::SetNumberOfStreamDivisions(n);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class ITK_TEMPLATE_EXPORT ImageToHistogramFilter : public ImageSink<TImage>
// Change the access from protected to public to expose streaming option, a using statement can not be used due to
// limitations of wrapping.
void
SetNumberOfStreamDivisions(unsigned int n) override
SetNumberOfStreamDivisions(const unsigned int n) override
{
Superclass::SetNumberOfStreamDivisions(n);
}
Expand Down

0 comments on commit 8c4d3da

Please sign in to comment.