mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move divesite_has_gps_information() to struct dive_site
Seems logical in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
c812dd140b
commit
0aa4efb3d9
14 changed files with 20 additions and 21 deletions
|
@ -134,6 +134,11 @@ bool dive_site::is_selected() const
|
|||
[](dive *dive) { return dive->selected; });
|
||||
}
|
||||
|
||||
bool dive_site::has_gps_location() const
|
||||
{
|
||||
return has_location(&location);
|
||||
}
|
||||
|
||||
/* allocate a new site and add it to the table */
|
||||
dive_site *dive_site_table::create(const std::string &name)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue