mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: pass location_t as value to divesite functions
These were passed as pointers, which makes no sense. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
858a0aecba
commit
90d5bab4e9
8 changed files with 16 additions and 16 deletions
|
@ -177,7 +177,7 @@ static void parse_dive_gps(char *line, struct git_parser_state *state)
|
|||
if (!ds) {
|
||||
ds = state->log->sites->get_by_gps(&location);
|
||||
if (!ds)
|
||||
ds = state->log->sites->create(std::string(), &location);
|
||||
ds = state->log->sites->create(std::string(), location);
|
||||
ds->add_dive(state->active_dive);
|
||||
} else {
|
||||
if (dive_site_has_gps_location(ds) && ds->location != location) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue