mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
284582d2e8
Since struct divecomputer is now fully C++ (i.e. cleans up after itself), we can simply turn the list of divecomputers into an std::vector<>. This makes the code quite a bit simpler, because the first divecomputer was actually a subobject. Yes, this makes the common case of a single divecomputer a little bit less efficient, but it really shouldn't matter. If it does, we can still write a special std::vector<>- like container that keeps the first element inline. This change makes pointers-to-divecomputers not stable. So always access the divecomputer via its index. As far as I can tell, most of the code already does this. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> |
||
---|---|---|
.. | ||
maintab.cpp | ||
maintab.h | ||
TabBase.cpp | ||
TabBase.h | ||
TabDiveEquipment.cpp | ||
TabDiveEquipment.h | ||
TabDiveEquipment.ui | ||
TabDiveExtraInfo.cpp | ||
TabDiveExtraInfo.h | ||
TabDiveExtraInfo.ui | ||
TabDiveInformation.cpp | ||
TabDiveInformation.h | ||
TabDiveInformation.ui | ||
TabDiveNotes.cpp | ||
TabDiveNotes.h | ||
TabDiveNotes.ui | ||
TabDivePhotos.cpp | ||
TabDivePhotos.h | ||
TabDivePhotos.ui | ||
TabDiveStatistics.cpp | ||
TabDiveStatistics.h | ||
TabDiveStatistics.ui |