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
No related branches found
No related tags found
No related merge requests found
...@@ -62,9 +62,10 @@ public: ...@@ -62,9 +62,10 @@ public:
protected: protected:
/** Constructor */ /** Constructor */
PolygonClassStatisticsAccumulator() {} PolygonClassStatisticsAccumulator();
/** Destructor */ /** Destructor */
virtual ~PolygonClassStatisticsAccumulator() {} virtual ~PolygonClassStatisticsAccumulator();
private: private:
//Number of pixels in all the polygons //Number of pixels in all the polygons
......
...@@ -21,6 +21,15 @@ ...@@ -21,6 +21,15 @@
namespace otb namespace otb
{ {
PolygonClassStatisticsAccumulator::PolygonClassStatisticsAccumulator() :
m_NbPixelsGlobal(0UL),
m_ElmtsInClass(),
m_Polygon()
{}
PolygonClassStatisticsAccumulator::~PolygonClassStatisticsAccumulator()
{}
void void
PolygonClassStatisticsAccumulator PolygonClassStatisticsAccumulator
::Reset() ::Reset()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment