changeset 857:44675ab217a3

Fix some (probably benign) uninitialised members (from coverity scan)
author Chris Cannam
date Wed, 03 Sep 2014 12:10:27 +0100
parents ee36642b9b59
children ae4f58d9db84
files widgets/Fader.cpp widgets/ItemEditDialog.cpp widgets/KeyReference.cpp
diffstat 3 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/widgets/Fader.cpp	Wed Sep 03 12:08:35 2014 +0100
+++ b/widgets/Fader.cpp	Wed Sep 03 12:10:27 2014 +0100
@@ -48,7 +48,9 @@
     m_value(1.0),
     m_peakLeft(0.0),
     m_peakRight(0.0),
-    m_mousePressed(false)
+    m_mousePressed(false),
+    m_mousePressX(0),
+    m_mousePressValue(0)
 {
     setMinimumSize(116, 23);
     setMaximumSize(116, 23);
--- a/widgets/ItemEditDialog.cpp	Wed Sep 03 12:08:35 2014 +0100
+++ b/widgets/ItemEditDialog.cpp	Wed Sep 03 12:10:27 2014 +0100
@@ -32,6 +32,9 @@
                                QString valueUnits, QWidget *parent) :
     QDialog(parent),
     m_sampleRate(sampleRate),
+    m_defaultFrame(0),
+    m_defaultDuration(0),
+    m_defaultValue(0),
     m_frameTimeSpinBox(0),
     m_realTimeSecsSpinBox(0),
     m_realTimeUSecsSpinBox(0),
--- a/widgets/KeyReference.cpp	Wed Sep 03 12:08:35 2014 +0100
+++ b/widgets/KeyReference.cpp	Wed Sep 03 12:10:27 2014 +0100
@@ -24,6 +24,7 @@
 #include <QDesktopWidget>
 
 KeyReference::KeyReference() :
+    m_text(0),
     m_dialog(0)
 {
 }