aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-01 22:02:26 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-01 22:02:53 -0400
commitb80079c37f7bad67cf91d96ef7c79e87ac0801cb (patch)
tree8d0b0f99f2476f5535e996ac22fd5e47d4ebb813 /qt-ui
parentdf51171352cb615cfa792ece05554afa212a3cbc (diff)
downloadsubsurface-b80079c37f7bad67cf91d96ef7c79e87ac0801cb.tar.gz
Avoid having uninitialized member
Coverity CID 1325283 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/simplewidgets.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ui/simplewidgets.cpp b/qt-ui/simplewidgets.cpp
index baae7cced..57fc56b0f 100644
--- a/qt-ui/simplewidgets.cpp
+++ b/qt-ui/simplewidgets.cpp
@@ -324,7 +324,11 @@ bool ShiftImageTimesDialog::matchAll()
return matchAllImages;
}
-ShiftImageTimesDialog::ShiftImageTimesDialog(QWidget *parent, QStringList fileNames) : QDialog(parent), fileNames(fileNames), m_amount(0)
+ShiftImageTimesDialog::ShiftImageTimesDialog(QWidget *parent, QStringList fileNames) :
+ QDialog(parent),
+ fileNames(fileNames),
+ m_amount(0),
+ matchAllImages(false)
{
ui.setupUi(this);
connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonClicked(QAbstractButton *)));