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:
Berthold Stoeger 2024-05-18 21:04:58 +02:00 committed by bstoeger
parent b9a2eff3c9
commit bc761344d4
14 changed files with 101 additions and 161 deletions

View file

@ -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