mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: convert dive computer extra data to C++
Use std::string and std::vector. Much simpler code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b9a2eff3c9
commit
bc761344d4
14 changed files with 101 additions and 161 deletions
|
@ -3,6 +3,7 @@
|
|||
#define DIVECOMPUTEREXTRADATAMODEL_H
|
||||
|
||||
#include "cleanertablemodel.h"
|
||||
#include "core/extradata.h"
|
||||
|
||||
struct divecomputer;
|
||||
|
||||
|
@ -22,11 +23,7 @@ public:
|
|||
void updateDiveComputer(const struct divecomputer *dc);
|
||||
|
||||
private:
|
||||
struct Item {
|
||||
QString key;
|
||||
QString value;
|
||||
};
|
||||
std::vector<Item> items;
|
||||
std::vector<extra_data> items;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue