mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
6184f5d276
commit
abf942f303
3 changed files with 25 additions and 35 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue