summaryrefslogtreecommitdiffstats
path: root/core/device.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-05 10:12:12 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-16 14:26:37 -0700
commit4a50badb57efd7725fa540ea7bb13f1e334cb83c (patch)
tree9e3a9214f4d5510dca8e212bbaa2e7f6e7b3bf5e /core/device.h
parentfd8bd9d5c717799313c4decaa85796ba68449f8a (diff)
downloadsubsurface-4a50badb57efd7725fa540ea7bb13f1e334cb83c.tar.gz
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>
Diffstat (limited to 'core/device.h')
-rw-r--r--core/device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/device.h b/core/device.h
index 90d67bb5e..28ad696bb 100644
--- a/core/device.h
+++ b/core/device.h
@@ -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;