mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: use C++-primitives for g_tag_list
The old code was leaking memory. Use std::unique_ptr<> for ownership management. This is still very primitive and divetags are kept during application lifetime. There should probably be some form of reference counting. And the taglist should not be global, but attached to the divelog. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b320942343
commit
556ecd5a9b
23 changed files with 92 additions and 125 deletions
|
|
@ -36,7 +36,6 @@ QString distance_string(int distanceInMeters);
|
|||
bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed_out = 0);
|
||||
QString get_gas_string(struct gasmix gas);
|
||||
QStringList get_dive_gas_list(const struct dive *d);
|
||||
QString get_taglist_string(struct tag_entry *tag_list);
|
||||
QStringList stringToList(const QString &s);
|
||||
void read_hashes();
|
||||
void write_hashes();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue