mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
f120fecccb
This is a hairy one, because the sample code is rather tricky. There was a pattern of looping through pairs of adjacent samples, for interpolation purposes. Add an range adapter to generalize such loops. Removes the finish_sample() function: The code would call prepare_sample() to start parsing of samples and then finish_sample() to actuall add it. I.e. a kind of commit(). Since, with one exception, all users of prepare_sample() called finish_sample() in all code paths, we might just add the sample in the first place. The exception was sample_end() in parse.cpp. This brings a small change: samples are now added, even if they could only be parsed partially. I doubt that this makes any difference, since it will only happen for broken divelogs anyway. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
command.cpp | ||
command.h | ||
command_base.cpp | ||
command_base.h | ||
command_device.cpp | ||
command_device.h | ||
command_divelist.cpp | ||
command_divelist.h | ||
command_divesite.cpp | ||
command_divesite.h | ||
command_edit.cpp | ||
command_edit.h | ||
command_edit_trip.cpp | ||
command_edit_trip.h | ||
command_event.cpp | ||
command_event.h | ||
command_filter.cpp | ||
command_filter.h | ||
command_pictures.cpp | ||
command_pictures.h |