Skip to content

Commit

Permalink
STYLE: Default default-constructor of RegularizedHeavisideStepFunction
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Dekker authored and dzenanz committed Feb 23, 2023
1 parent ea237fa commit 8aa993b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Expand Up @@ -69,12 +69,12 @@ class ITK_TEMPLATE_EXPORT RegularizedHeavisideStepFunction : public HeavisideSte
itkGetConstMacro(OneOverEpsilon, RealType);

protected:
RegularizedHeavisideStepFunction();
RegularizedHeavisideStepFunction() = default;
~RegularizedHeavisideStepFunction() override = default;

private:
RealType m_Epsilon{};
RealType m_OneOverEpsilon{};
RealType m_Epsilon{ NumericTraits<RealType>::OneValue() };
RealType m_OneOverEpsilon{ NumericTraits<RealType>::OneValue() };
};
} // namespace itk

Expand Down
Expand Up @@ -21,13 +21,6 @@

namespace itk
{
template <typename TInput, typename TOutput>
RegularizedHeavisideStepFunction<TInput, TOutput>::RegularizedHeavisideStepFunction()
: Superclass()
, m_Epsilon(NumericTraits<RealType>::OneValue())
, m_OneOverEpsilon(NumericTraits<RealType>::OneValue())
{}

template <typename TInput, typename TOutput>
void
RegularizedHeavisideStepFunction<TInput, TOutput>::SetEpsilon(const RealType & ieps)
Expand Down

0 comments on commit 8aa993b

Please sign in to comment.