mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move dive_[has|get]_gps_location() to struct dive
Feel natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
286d8fe21c
commit
e90251b0cf
7 changed files with 16 additions and 20 deletions
|
@ -1207,7 +1207,7 @@ static void gps_in_dive(const char *buffer, struct dive *dive, struct parser_sta
|
|||
}
|
||||
ds->add_dive(dive);
|
||||
} else {
|
||||
if (dive_site_has_gps_location(ds) &&
|
||||
if (ds->has_gps_location() &&
|
||||
has_location(&location) && ds->location != location) {
|
||||
// Houston, we have a problem
|
||||
report_info("dive site uuid in dive, but gps location (%10.6f/%10.6f) different from dive location (%10.6f/%10.6f)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue