mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: turn string data in struct divecomputer into std::string
Simplifies memory management. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
cc39f709ce
commit
b9a2eff3c9
28 changed files with 114 additions and 147 deletions
|
@ -58,7 +58,7 @@ static void write_divecomputers(struct membuffer *b, struct dive *dive)
|
|||
put_string(b, separator);
|
||||
separator = ", ";
|
||||
put_format(b, "{");
|
||||
write_attribute(b, "model", dc->model, ", ");
|
||||
write_attribute(b, "model", dc->model.c_str(), ", ");
|
||||
if (dc->deviceid)
|
||||
put_format(b, "\"deviceid\":\"%08x\", ", dc->deviceid);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue