subsurface/desktop-widgets/tab-widgets
Berthold Stoeger 701a7813a3 core: refactor per_cylinder_mean_depth()
This function had a horrendous interface: The caller would have to
allocate two arrays of the correct size to be filled with data.
The callee couldn't even check the size, because the data was passed
as raw pointers.

Instead, use std::vector<>, construct everything in the called
function and do size-sanity check in the calling function.

Use depth_t and duration_t instead of plain integers to represent
mean depth and time.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2024-12-16 10:10:51 +01:00
..
maintab.cpp core: move get_dive_dc() to struct dive 2024-08-13 19:28:30 +02:00
maintab.h
TabBase.cpp
TabBase.h
TabDiveEquipment.cpp Planner: Improve Gas Handling in CCR Mode. 2024-08-26 12:36:31 +12:00
TabDiveEquipment.h
TabDiveEquipment.ui desktop: generalize the colorization of the tab widget 2020-11-03 23:08:39 -08:00
TabDiveExtraInfo.cpp core: move get_dive_dc() to struct dive 2024-08-13 19:28:30 +02:00
TabDiveExtraInfo.h
TabDiveExtraInfo.ui
TabDiveInformation.cpp core: refactor per_cylinder_mean_depth() 2024-12-16 10:10:51 +01:00
TabDiveInformation.h
TabDiveInformation.ui
TabDiveNotes.cpp preferences: use std::string in struct preferences 2024-08-13 19:28:30 +02:00
TabDiveNotes.h
TabDiveNotes.ui
TabDivePhotos.cpp desktop: use std::string to format subtitles 2024-08-13 19:28:30 +02:00
TabDivePhotos.h
TabDivePhotos.ui
TabDiveStatistics.cpp core: turn divecomputer list into std::vector<> 2024-08-13 19:28:30 +02:00
TabDiveStatistics.h
TabDiveStatistics.ui