mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: turn extra_data key/value pair in parser to std::string
Less troublesome memory management. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
92a1a08b21
commit
e6321a1305
3 changed files with 7 additions and 11 deletions
|
@ -88,7 +88,7 @@ struct parser_state {
|
|||
int lastcylinderindex = 0, next_o2_sensor = 0;
|
||||
int o2pressure_sensor = 0;
|
||||
int sample_rate = 0;
|
||||
struct extra_data cur_extra_data{ 0 };
|
||||
struct { std::string key; std::string value; } cur_extra_data;
|
||||
struct units xml_parsing_units;
|
||||
struct divelog *log = nullptr; /* non-owning */
|
||||
struct fingerprint_table *fingerprints = nullptr; /* non-owning */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue