summaryrefslogtreecommitdiffstats
path: root/core/divecomputer.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-06-16 13:22:33 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-06-17 06:53:13 +0900
commit8e8cd7a8d9304b96cc80fbd2ea63e28d9f7595a3 (patch)
treec0b9a7f8ff9aafcd6d3c5ce13b312a2a98100bec /core/divecomputer.h
parentb0cc4169549e34781e63b25a016b05f1334f33cd (diff)
downloadsubsurface-8e8cd7a8d9304b96cc80fbd2ea63e28d9f7595a3.tar.gz
Cleanup: remove eplicit constructors and unused member variable
Remove the explicit constructor in DiveComputerNode: Just use classical C-style struct initialization. Moreover, remove the empty constructor and destructor of DiveComputerList. The variable DiveComputerList::dcWorkingMap was unused. Remove. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/divecomputer.h')
-rw-r--r--core/divecomputer.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/divecomputer.h b/core/divecomputer.h
index d58b22b68..dd82ce241 100644
--- a/core/divecomputer.h
+++ b/core/divecomputer.h
@@ -8,8 +8,6 @@
class DiveComputerNode {
public:
- DiveComputerNode(QString m, uint32_t d, QString s, QString f, QString n)
- : model(m), deviceId(d), serialNumber(s), firmware(f), nickName(n) {};
bool operator==(const DiveComputerNode &a) const;
bool operator!=(const DiveComputerNode &a) const;
bool changesValues(const DiveComputerNode &b) const;
@@ -23,15 +21,12 @@ public:
class DiveComputerList {
public:
- DiveComputerList();
- ~DiveComputerList();
const DiveComputerNode *getExact(const QString &m, uint32_t d);
const DiveComputerNode *get(const QString &m);
void addDC(QString m, uint32_t d, QString n = QString(), QString s = QString(), QString f = QString());
DiveComputerNode matchDC(const QString &m, uint32_t d);
DiveComputerNode matchModel(const QString &m);
QMultiMap<QString, DiveComputerNode> dcMap;
- QMultiMap<QString, DiveComputerNode> dcWorkingMap;
};
extern DiveComputerList dcList;