mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Change taglist_get_tagstring to support 'unlimited' tag list size
Previous taglist_get_tagstring signature/implementation did not allow handling of cases where inputted buffer could not contain all tags. New implementation allocates buffer based on pre-computed size allowing to insert all tags in the returned string. Added get_taglist_string in qthelper to handle conversion to QString Added TestTagList with tests for taglist_get_tagstring Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
This commit is contained in:
parent
f1830cd44e
commit
7753352e62
10 changed files with 140 additions and 39 deletions
|
@ -30,6 +30,7 @@ bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_te
|
|||
QList<int> getDivesInTrip(dive_trip_t *trip);
|
||||
QString get_gas_string(struct gasmix gas);
|
||||
QString get_divepoint_gas_string(struct dive *d, const divedatapoint& dp);
|
||||
QString get_taglist_string(struct tag_entry *tag_list);
|
||||
void read_hashes();
|
||||
void write_hashes();
|
||||
void updateHash(struct picture *picture);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue