Skip to content

Commit

Permalink
STYLE: Replace PushBackInput, PushFrontInput with using-declarations
Browse files Browse the repository at this point in the history
Replaced these member functions with the equivalent using-declarations, as they
only just forwarded to their `Superclass` anyway.

Aims to address their lack of coverage, at
https://open.cdash.org/viewCoverageFile.php?buildid=9419378&fileid=57778588
  • Loading branch information
N-Dekker authored and hjmjohnson committed Mar 1, 2024
1 parent 3c1da64 commit 613c8f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
12 changes: 2 additions & 10 deletions Modules/Compatibility/Deprecated/include/itkImageTransformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,8 @@ class ITK_TEMPLATE_EXPORT ImageTransformer : public ProcessObject
* methods from the superclass.
* NOTE: The same code resides in ImageToImageFilter
*/
void
PushBackInput(const DataObject * input) override
{
Superclass::PushBackInput(input);
}
void
PushFrontInput(const DataObject * input) override
{
Superclass::PushFrontInput(input);
}
using Superclass::PushBackInput;
using Superclass::PushFrontInput;

/** Internal structure used for passing image data into the threading library
*/
Expand Down
12 changes: 2 additions & 10 deletions Modules/Core/Common/include/itkImageToImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -362,16 +362,8 @@ class ITK_TEMPLATE_EXPORT ImageToImageFilter
* the versions from ProcessObject to avoid warnings about hiding
* methods from the superclass.
*/
void
PushBackInput(const DataObject * input) override
{
Superclass::PushBackInput(input);
}
void
PushFrontInput(const DataObject * input) override
{
Superclass::PushFrontInput(input);
}
using Superclass::PushBackInput;
using Superclass::PushFrontInput;

private:
/**
Expand Down

0 comments on commit 613c8f4

Please sign in to comment.