From: tbaudier Date: Fri, 2 Dec 2016 12:17:46 +0000 (+0100) Subject: Initialize a variable in Binarize tool X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2288026f3fb18202067ba18b74ddc6f6ce078798;p=clitk.git Initialize a variable in Binarize tool Valgrind wasn't happy without the initialization --- diff --git a/vv/vvImageContour.cxx b/vv/vvImageContour.cxx index ac43af2..68dc720 100644 --- a/vv/vvImageContour.cxx +++ b/vv/vvImageContour.cxx @@ -38,6 +38,7 @@ vvImageContour::vvImageContour() mDisplayModeIsPreserveMemory = true; SetPreserveMemoryModeEnabled(true); mPreviousOrientation = -1; + mPreviousValue=0; mDepth = 1.0; mSlice = 0; } diff --git a/vv/vvIntensityValueSlider.cxx b/vv/vvIntensityValueSlider.cxx index 6d15838..bbd31e5 100644 --- a/vv/vvIntensityValueSlider.cxx +++ b/vv/vvIntensityValueSlider.cxx @@ -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)));