Commit 87aebcf7 authored by Luc Hermitte's avatar Luc Hermitte

WRN: Fix field construction order

Field declaration order and field construction order should match as ambiguity
may arise: it's always the field declarations order that matter. The other one
is ignored.

This commit is meant to silence gcc `-Wreorder` warning.

```
../Modules/Filtering/ImageManipulation/include/otbGridResampleImageFilter.hxx:44:5: warning: field 'm_CheckOutputBounds' will be initialized after field 'm_InterpolationMargin' [-Wreorder]

```
parent 10934b48
Pipeline #5729 failed with stages
in 64 minutes and 42 seconds
......@@ -193,9 +193,9 @@ private:
OutputPixelType m_EdgePaddingValue; // Default pixel value
double m_InterpolationMargin;
double m_InterpolationMargin = 0.0;
bool m_CheckOutputBounds; // Shall we check
bool m_CheckOutputBounds = true; // Shall we check
// output bounds when
// casting?
......
......@@ -41,8 +41,6 @@ GridResampleImageFilter<TInputImage, TOutputImage, TInterpolatorPrecision>::Grid
m_OutputOrigin(),
m_OutputSpacing(),
m_EdgePaddingValue(),
m_CheckOutputBounds(true),
m_InterpolationMargin(0.0),
m_Interpolator(),
m_ReachableOutputRegion()
{
......@@ -248,7 +246,7 @@ void GridResampleImageFilter<TInputImage, TOutputImage, TInterpolatorPrecision>:
inULp -= (0.5 - m_InterpolationMargin) * this->GetInput()->GetSignedSpacing();
inLRp += (0.5 - m_InterpolationMargin) * this->GetInput()->GetSignedSpacing();
ContinuousInputIndexType outUL;
ContinuousInputIndexType outLR;
this->GetOutput()->TransformPhysicalPointToContinuousIndex(inULp, outUL);
......
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