Commit d772e21e authored by Julien Michel's avatar Julien Michel

COMP: Fixing coverity issue 1350187 (uninitialized class members) and moving...

COMP: Fixing coverity issue 1350187 (uninitialized class members) and moving constructor and destructor bodies to cxx file
parent b3cb6f45
......@@ -62,9 +62,10 @@ public:
protected:
/** Constructor */
PolygonClassStatisticsAccumulator() {}
PolygonClassStatisticsAccumulator();
/** Destructor */
virtual ~PolygonClassStatisticsAccumulator() {}
virtual ~PolygonClassStatisticsAccumulator();
private:
//Number of pixels in all the polygons
......
......@@ -21,6 +21,15 @@
namespace otb
{
PolygonClassStatisticsAccumulator::PolygonClassStatisticsAccumulator() :
m_NbPixelsGlobal(0UL),
m_ElmtsInClass(),
m_Polygon()
{}
PolygonClassStatisticsAccumulator::~PolygonClassStatisticsAccumulator()
{}
void
PolygonClassStatisticsAccumulator
::Reset()
......
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