mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: make split_dive() and related functions return unique_ptrs
This prepares for turning the dive table into a list of owning pointers. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
c9d4ce0c15
commit
0ef497c3c9
4 changed files with 71 additions and 110 deletions
|
|
@ -196,7 +196,7 @@ struct MergeTrips : public TripBase {
|
|||
|
||||
class SplitDivesBase : public DiveListBase {
|
||||
protected:
|
||||
SplitDivesBase(dive *old, std::array<dive *, 2> newDives);
|
||||
SplitDivesBase(dive *old, std::array<std::unique_ptr<dive>, 2> newDives);
|
||||
private:
|
||||
void undoit() override;
|
||||
void redoit() override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue