summaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-12-10 15:21:50 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-17 07:37:32 -0800
commitabf942f30300e6d46652c312f2b531dc3540b19a (patch)
tree786e7b00fb7dd9ea0b54c1dfc3d989d6c1d29036 /core/downloadfromdcthread.h
parent6184f5d2761b559edf85063eca61389bb82ad343 (diff)
downloadsubsurface-abf942f30300e6d46652c312f2b531dc3540b19a.tar.gz
Cleanup: make DCDeviceData a "normal" singleton
DCDeviceData was using that weird pattern where the instance variable was set in the constructor. There is no apparent reason to do so, therefore convert to a "normal" singleton. Access that directly in QMLManager instead of saving it in a member variable first. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/downloadfromdcthread.h')
-rw-r--r--core/downloadfromdcthread.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/downloadfromdcthread.h b/core/downloadfromdcthread.h
index 3e2d7ddc0..1ae6a4087 100644
--- a/core/downloadfromdcthread.h
+++ b/core/downloadfromdcthread.h
@@ -51,7 +51,6 @@ public:
void setSaveDump(bool dumpMode);
void setSaveLog(bool saveLog);
private:
- static DCDeviceData *m_instance;
device_data_t data;
// Bluetooth name is managed outside of libdivecomputer