From 3173c0e09086f16777d898f32c95c998d56cef77 Mon Sep 17 00:00:00 2001 From: remi cresson <remi.cresson@teledetection.fr> Date: Wed, 12 Sep 2018 10:01:41 +0200 Subject: [PATCH] REFAC: use pixel constructor instead of SetSize() --- .../Applications/AppClassification/app/otbZonalStatistics.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx b/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx index 14d096ebed..6c6734d33c 100644 --- a/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx +++ b/Modules/Applications/AppClassification/app/otbZonalStatistics.cxx @@ -157,8 +157,7 @@ public: FloatVectorImageType::PixelType NullPixel(FloatVectorImageType::Pointer & img) { const unsigned int nBands = img->GetNumberOfComponentsPerPixel(); - FloatVectorImageType::PixelType pix; - pix.SetSize(nBands); + FloatVectorImageType::PixelType pix(nBands); pix.Fill(0); return pix; } -- GitLab