subsurface/commands
Berthold Stoeger 048cdcaa31 cleanup: remove count_divecomputers() function
There is a number_of_computers() function which does
the same thing with two exceptions:
1) checks for null-dive
2) returns an unsigned int

Replace calls to count_divecomputers() by calls to number_of_computers().
In one case, the return type makes a different - add a cast to int there.
Ultimately, we should probably change the dc_number to signed int
throughout the code.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2020-09-08 17:20:09 -07:00
..
CMakeLists.txt undo: implement undo of setting a picture time by drag&drop 2020-05-06 13:58:09 -07:00
command.cpp undo: make adding of pictures undoable 2020-05-06 13:58:09 -07:00
command.h undo: make adding of pictures undoable 2020-05-06 13:58:09 -07:00
command_base.cpp undo infrastructure: improve undo command texts 2020-03-10 09:25:57 -07:00
command_base.h cleanup: move dive_table from dive.h to divelist.h 2020-05-01 09:42:31 -07:00
command_divelist.cpp cleanup: remove count_divecomputers() function 2020-09-08 17:20:09 -07:00
command_divelist.h Cleanup: use getDiveSelection() for shifting time 2020-03-06 10:00:13 +01:00
command_divesite.cpp cleanup: copy string in taxonomy_set_[country|category] 2020-09-06 12:59:54 -07:00
command_divesite.h undo: implement ApplyGPSFixes undo command 2020-03-09 12:41:57 -07:00
command_edit.cpp cleanup: consistently use get_cylinder() accessor 2020-08-21 08:48:22 -07:00
command_edit.h undo: more fine-grained editing of cylinder 2020-04-07 00:13:35 +02:00
command_edit_trip.cpp translations: qualify tr function to get correct context 2020-03-22 12:02:48 -07:00
command_edit_trip.h Cleanup: lower-case filenames in core/subsurface-qt/ 2020-02-04 02:16:46 +01:00
command_event.cpp undo: reload dive on removal of gas-switch 2020-04-07 00:13:35 +02:00
command_event.h undo: reload dive on removal of gas-switch 2020-04-07 00:13:35 +02:00
command_pictures.cpp media: give newly created dive sites a name 2020-05-08 08:51:37 -07:00
command_pictures.h undo: make adding of pictures undoable 2020-05-06 13:58:09 -07:00