mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: turn struct dive string data into std::string
Much easier memory management! Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2b3d2f1020
commit
3cb04d230b
34 changed files with 208 additions and 313 deletions
|
@ -240,16 +240,16 @@ static void parse_dive_location(char *, struct git_parser_state *state)
|
|||
}
|
||||
|
||||
static void parse_dive_diveguide(char *, struct git_parser_state *state)
|
||||
{ state->active_dive->diveguide = get_first_converted_string_c(state); }
|
||||
{ state->active_dive->diveguide = get_first_converted_string(state); }
|
||||
|
||||
static void parse_dive_buddy(char *, struct git_parser_state *state)
|
||||
{ state->active_dive->buddy = get_first_converted_string_c(state); }
|
||||
{ state->active_dive->buddy = get_first_converted_string(state); }
|
||||
|
||||
static void parse_dive_suit(char *, struct git_parser_state *state)
|
||||
{ state->active_dive->suit = get_first_converted_string_c(state); }
|
||||
{ state->active_dive->suit = get_first_converted_string(state); }
|
||||
|
||||
static void parse_dive_notes(char *, struct git_parser_state *state)
|
||||
{ state->active_dive->notes = get_first_converted_string_c(state); }
|
||||
{ state->active_dive->notes = get_first_converted_string(state); }
|
||||
|
||||
static void parse_dive_divesiteid(char *line, struct git_parser_state *state)
|
||||
{ state->log->sites->get_by_uuid(get_hex(line))->add_dive(state->active_dive.get()); }
|
||||
|
@ -312,10 +312,10 @@ static void parse_site_description(char *, struct git_parser_state *state)
|
|||
{ state->active_site->description = get_first_converted_string(state); }
|
||||
|
||||
static void parse_site_name(char *, struct git_parser_state *state)
|
||||
{ state->active_site->name = get_first_converted_string_c(state); }
|
||||
{ state->active_site->name = get_first_converted_string(state); }
|
||||
|
||||
static void parse_site_notes(char *, struct git_parser_state *state)
|
||||
{ state->active_site->notes = get_first_converted_string_c(state); }
|
||||
{ state->active_site->notes = get_first_converted_string(state); }
|
||||
|
||||
static void parse_site_gps(char *line, struct git_parser_state *state)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue