mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: move has_dive() function into struct divelist
Seems natural in a C++ code base. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
60c7b503cf
commit
576d3a3bc6
4 changed files with 5 additions and 5 deletions
|
@ -983,7 +983,7 @@ static void verify_fingerprint(dc_device_t *device, device_data_t *devdata, cons
|
|||
if (verbose)
|
||||
dev_info(" ... fingerprinted dive %08x:%08x", deviceid, diveid);
|
||||
/* Only use it if we *have* that dive! */
|
||||
if (!has_dive(deviceid, diveid)) {
|
||||
if (!divelog.dives.has_dive(deviceid, diveid)) {
|
||||
if (verbose)
|
||||
dev_info(" ... dive not found");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue