mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: rename set_dc_nickname() to add_devices_of_dive()
The function was misnamed in that it doesn't set the nickname of a device. Instead, it adds all (unknown) devices of a dive to the/a device-table. Let's call it appropriately. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
39a4090c0a
commit
694776eed1
3 changed files with 6 additions and 6 deletions
|
|
@ -342,12 +342,12 @@ extern "C" int is_default_dive_computer_device(const char *name)
|
|||
return qPrefDiveComputer::device() == name;
|
||||
}
|
||||
|
||||
extern "C" void set_dc_nickname(struct dive *dive, struct device_table *device_table)
|
||||
extern "C" void add_devices_of_dive(const struct dive *dive, struct device_table *device_table)
|
||||
{
|
||||
if (!dive)
|
||||
return;
|
||||
|
||||
struct divecomputer *dc;
|
||||
const struct divecomputer *dc;
|
||||
|
||||
for_each_dc (dive, dc) {
|
||||
if (!empty_string(dc->model) && dc->deviceid &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue