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
|
@ -636,7 +636,7 @@ static void parse_string_field(device_data_t *devdata, struct dive *dive, dc_fie
|
|||
|
||||
if (location.lat.udeg && location.lon.udeg) {
|
||||
unregister_dive_from_dive_site(dive);
|
||||
devdata->log->sites->create(std::string(str->value), &location)->add_dive(dive);
|
||||
devdata->log->sites->create(std::string(str->value), location)->add_dive(dive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue