cleanup: use std::vector in struct device_table

Since we converted from QString to std::string, let's also use
std::vector instead of QVector. We don't need COW semantics
and all the rigmarole. Let's try to keep Qt data structures
out of the core.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-10-05 10:12:12 +02:00 committed by Dirk Hohndel
parent fd8bd9d5c7
commit 4a50badb57
4 changed files with 9 additions and 9 deletions

View file

@ -26,7 +26,7 @@ const char *get_dc_nickname(const struct divecomputer *dc);
#ifdef __cplusplus
#include <string>
#include <QVector>
#include <vector>
struct device {
bool operator==(const device &a) const;
bool operator!=(const device &a) const;
@ -41,7 +41,7 @@ struct device {
struct device_table {
// Keep the dive computers in a vector sorted by (model, deviceId)
QVector<device> devices;
std::vector<device> devices;
};
extern struct device_table device_table;