Commit 26eed39b authored by Antoine Regimbeau's avatar Antoine Regimbeau

REFAC: const and default

parent 3d38fd52
......@@ -75,11 +75,9 @@ public:
itkSetMacro(DecimationFactor, unsigned int);
protected:
DecimateImageFilter ()
{
m_DecimationFactor = 1;
}
virtual ~DecimateImageFilter() {}
DecimateImageFilter () : m_DecimationFactor(1) {};
virtual ~DecimateImageFilter() = default;
/** Since input and output image are very likely to be of different size.
* Region estimation functions has to be reimplemented
......
......@@ -115,7 +115,7 @@ template <class TInputImage, class TOutputImage>
void
DecimateImageFilter<TInputImage, TOutputImage>
::ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread,
itk::ThreadIdType itkNotUsed(threadId))
itk::ThreadIdType )
{
InputImageRegionType inputRegionForThread;
this->CallCopyOutputRegionToInputRegion(inputRegionForThread, outputRegionForThread);
......
......@@ -46,7 +46,7 @@ public:
DotProductFunctor() {}
virtual ~DotProductFunctor() {}
bool operator !=(const DotProductFunctor& itkNotUsed(other)) const
bool operator !=(const DotProductFunctor& ) const
{
return false;
}
......@@ -126,7 +126,7 @@ public:
typedef typename TInputImage::PixelType InputPixelType;
typedef typename TOutputImage::PixelType OutputPixelType;
const InputPixelType& GetVector()
const InputPixelType& GetVector() const
{
return this->GetFunctor().GetVector();
}
......@@ -138,11 +138,9 @@ public:
}
protected:
DotProductImageFilter();
DotProductImageFilter() = default;
~DotProductImageFilter() override {}
void PrintSelf(std::ostream& os, itk::Indent indent) const override;
~DotProductImageFilter() override = default;
private:
DotProductImageFilter(const Self &) = delete;
......
/*
* Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef otbDotProductImageFilter_hxx
#define otbDotProductImageFilter_hxx
#include "otbDotProductImageFilter.h"
namespace otb
{
/**
*
*/
template <class TInputImage, class TOutputImage>
DotProductImageFilter<TInputImage, TOutputImage>
::DotProductImageFilter()
{
}
template <class TInputImage, class TOutputImage>
void
DotProductImageFilter<TInputImage, TOutputImage>
::PrintSelf(std::ostream& os, itk::Indent indent) const
{
Superclass::PrintSelf(os, indent);
}
} // end namespace
#endif
......@@ -28,7 +28,7 @@ namespace otb
namespace Function
{
/** \class PhaseFunctor
* \brief Compute the module from the selected channel in the input
* \brief Compute the phase from the selected channel in the input
*
* \ingroup Visualization
*
......
OTBTemporalGapFilling @ 4fc4a71a
Subproject commit 4fc4a71acf7b9b051cda5a3b950de2cdb9d26287
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment