mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
fd8bd9d5c7
commit
4a50badb57
4 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue