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:
Berthold Stoeger 2024-03-01 22:53:43 +01:00 committed by Michael Keller
parent 92a1a08b21
commit e6321a1305
3 changed files with 7 additions and 11 deletions

View file

@ -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 */