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:
Berthold Stoeger 2024-06-25 14:40:51 +02:00 committed by bstoeger
parent 60c7b503cf
commit 576d3a3bc6
4 changed files with 5 additions and 5 deletions

View file

@ -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;