mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: replace is_dive_site_used() by is_dive_site_selected()
is_dive_site_used() had a "selected" parameter. If true it would return whether the given dive site had a selected dive. Turns out all callers had this parameter set to true. Therefore, replace by a simplified function without the "selected" parameter and give the function an appropriate name. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e46e018e21
commit
9c48130d37
3 changed files with 4 additions and 7 deletions
|
@ -608,7 +608,7 @@ static void save_dives_buffer(struct membuffer *b, const bool select_only, bool
|
|||
if (dive_site_is_empty(ds))
|
||||
continue;
|
||||
/* Only write used dive sites when exporting selected dives */
|
||||
if (select_only && !is_dive_site_used(ds, true))
|
||||
if (select_only && !is_dive_site_selected(ds))
|
||||
continue;
|
||||
|
||||
put_format(b, "<site uuid='%8x'", ds->uuid);
|
||||
|
@ -823,7 +823,7 @@ static void save_dive_sites_buffer(struct membuffer *b, const bool select_only,
|
|||
if (dive_site_is_empty(ds))
|
||||
continue;
|
||||
/* Only write used dive sites when exporting selected dives */
|
||||
if (select_only && !is_dive_site_used(ds, true))
|
||||
if (select_only && !is_dive_site_selected(ds))
|
||||
continue;
|
||||
|
||||
put_format(b, "<site uuid='%8x'", ds->uuid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue