motioncells: initialize class variables

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
This commit is contained in:
Luis de Bethencourt 2015-02-04 11:52:26 +00:00
parent 5aa292b588
commit 3656e0248a

View 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 ()