mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: convert dive computer extra data to C++
Use std::string and std::vector. Much simpler code. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b9a2eff3c9
commit
bc761344d4
14 changed files with 101 additions and 161 deletions
|
@ -832,7 +832,7 @@ static void parse_dc_keyvalue(char *line, struct git_parser_state *state)
|
|||
if (state->converted_strings.size() != 2)
|
||||
return;
|
||||
|
||||
add_extra_data(state->active_dc, state->converted_strings[0].c_str(), state->converted_strings[1].c_str());
|
||||
add_extra_data(state->active_dc, state->converted_strings[0], state->converted_strings[1]);
|
||||
}
|
||||
|
||||
static void parse_dc_event(char *line, struct git_parser_state *state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue