]> Creatis software - clitk.git/commitdiff
Initialize a variable in Binarize tool
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 2 Dec 2016 12:17:46 +0000 (13:17 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Fri, 2 Dec 2016 12:17:46 +0000 (13:17 +0100)
Valgrind wasn't happy without the initialization

vv/vvImageContour.cxx
vv/vvIntensityValueSlider.cxx

index ac43af2cc6a5467be57478aea07c69607f8b5b14..68dc72059a32d5cf02ac3424720149e6ffd9fc7f 100644 (file)
@@ -38,6 +38,7 @@ vvImageContour::vvImageContour()
   mDisplayModeIsPreserveMemory = true;
   SetPreserveMemoryModeEnabled(true);
   mPreviousOrientation = -1;
+  mPreviousValue=0;
   mDepth = 1.0;
   mSlice = 0;
 }
index 6d15838390d71f9aec93e3192c18decd9f4d555d..bbd31e56aac34785ce971b378b9afb7ece79e58d 100644 (file)
@@ -26,6 +26,7 @@ vvIntensityValueSlider::vvIntensityValueSlider(QWidget * parent, Qt::WindowFlags
   mIsInteger = true;
   mButtonPlus->setHidden(true);
   mButtonMinus->setHidden(true);
+  mValue=0;
 
   // Connect signals & slots
   connect(mSpinBox, SIGNAL(valueChanged(double)), this, SLOT(valueChangedFromSpinBox(double)));