motioncells: initialize class variables
authorLuis de Bethencourt <luis.bg@samsung.com>
Wed, 4 Feb 2015 11:52:26 +0000 (11:52 +0000)
committerLuis de Bethencourt <luis.bg@samsung.com>
Wed, 4 Feb 2015 11:52:26 +0000 (11:52 +0000)
Some variables are not initialized in the constructor. It is highly unlikely
they are used before being set, but it is safer to initialize them.

CID #1197704

ext/opencv/MotionCells.cpp

index 5eaa67f..449fe24 100644 (file)
@@ -75,7 +75,12 @@ MotionCells::MotionCells ()
   m_beta = 0.5;
   m_useAlpha = false;
   m_isVisible = false;
-
+  m_pCells = NULL;
+  m_gridx = 0;
+  m_gridy = 0;
+  m_cellwidth = 0;
+  m_cellheight = 0;
+  m_sensitivity = 0;
 }
 
 MotionCells::~MotionCells ()