summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 22:19:59 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 22:31:03 -0700
commita6e9db196f8b04c0e62b1cbd78c85b32b5169f70 (patch)
tree82def5c20434697fc276042fe248f6e7130e2eef /qt-ui/globe.cpp
parent83a5778f62dcea4ab98c795c9a15cef4a7a82b17 (diff)
downloadsubsurface-a6e9db196f8b04c0e62b1cbd78c85b32b5169f70.tar.gz
Initialize members
Globe: initialize doubleClick member ShiftTimesDialog: initialize when (not sure this could be a problem) SetpointDialog: dc could be uninitialized or could be 0 and dereferenced Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index b8e0ec87e..b070da424 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -38,7 +38,8 @@ GlobeGPS::GlobeGPS(QWidget *parent) : MarbleWidget(parent),
fixZoomTimer(new QTimer(this)),
currentZoomLevel(0),
needResetZoom(false),
- editingDiveLocation(false)
+ editingDiveLocation(false),
+ doubleClick(false)
{
#ifdef MARBLE_SUBSURFACE_BRANCH
// we need to make sure this gets called after the command line arguments have