mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| CMakeLists.txt | ||
| testAirPressure.cpp | ||
| testAirPressure.h | ||
| testdivesiteduplication.cpp | ||
| testdivesiteduplication.h | ||
| testformatDiveGasString.cpp | ||
| testformatDiveGasString.h | ||
| testgitstorage.cpp | ||
| testgitstorage.h | ||
| testgpscoords.cpp | ||
| testgpscoords.h | ||
| testhelper.cpp | ||
| testhelper.h | ||
| testmerge.cpp | ||
| testmerge.h | ||
| testparse.cpp | ||
| testparse.h | ||
| testparseperformance.cpp | ||
| testparseperformance.h | ||
| testpicture.cpp | ||
| testpicture.h | ||
| testplan.cpp | ||
| testplan.h | ||
| testplannershared.cpp | ||
| testplannershared.h | ||
| testprofile.cpp | ||
| testprofile.h | ||
| testqml.cpp | ||
| testqml.h | ||
| testqPrefCloudStorage.cpp | ||
| testqPrefCloudStorage.h | ||
| testqPrefDisplay.cpp | ||
| testqPrefDisplay.h | ||
| testqPrefDiveComputer.cpp | ||
| testqPrefDiveComputer.h | ||
| testqPrefDivePlanner.cpp | ||
| testqPrefDivePlanner.h | ||
| testqPrefEquipment.cpp | ||
| testqPrefEquipment.h | ||
| testqPrefGeneral.cpp | ||
| testqPrefGeneral.h | ||
| testqPrefGeocoding.cpp | ||
| testqPrefGeocoding.h | ||
| testqPrefLanguage.cpp | ||
| testqPrefLanguage.h | ||
| testqPrefLog.cpp | ||
| testqPrefLog.h | ||
| testqPrefMedia.cpp | ||
| testqPrefMedia.h | ||
| testqPrefPartialPressureGas.cpp | ||
| testqPrefPartialPressureGas.h | ||
| testqPrefProxy.cpp | ||
| testqPrefProxy.h | ||
| testqPrefTechnicalDetails.cpp | ||
| testqPrefTechnicalDetails.h | ||
| testqPrefUnits.cpp | ||
| testqPrefUnits.h | ||
| testqPrefUpdateManager.cpp | ||
| testqPrefUpdateManager.h | ||
| testrenumber.cpp | ||
| testrenumber.h | ||
| testtaglist.cpp | ||
| testtaglist.h | ||
| testunitconversion.cpp | ||
| testunitconversion.h | ||
| tst_qPrefCloudStorage.qml | ||
| tst_qPrefDisplay.qml | ||
| tst_qPrefDiveComputer.qml | ||
| tst_qPrefDivePlanner.qml | ||
| tst_qPrefGeneral.qml | ||
| tst_qPrefGeocoding.qml | ||
| tst_qPrefLanguage.qml | ||
| tst_qPrefPartialPressureGas.qml | ||
| tst_qPrefProxy.qml | ||
| tst_qPrefTechnicalDetails.qml | ||
| tst_qPrefUnits.qml | ||
| tst_qPrefUpdateManager.qml | ||