Skip to content
Snippets Groups Projects
Commit d772e21e authored by Julien Michel's avatar Julien Michel
Browse files

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
Branches
Tags
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment