summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/command_divelist.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-05-19 18:28:56 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-05-20 21:23:16 -0700
commitac590235c94fc2feb1f35a5cd290ea87f1a92044 (patch)
tree3de6a586c8c185c270b20f7034b326e3aa561cd8 /desktop-widgets/command_divelist.cpp
parent879f52180c077e924c7e44eb4c38017606df2834 (diff)
downloadsubsurface-ac590235c94fc2feb1f35a5cd290ea87f1a92044.tar.gz
Cleanup: rename clone_dive() to move_dive()
This function clones a dive and clear out the old dive. This corresponds to move semantics. Name the function accordingly. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/command_divelist.cpp')
-rw-r--r--desktop-widgets/command_divelist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/command_divelist.cpp b/desktop-widgets/command_divelist.cpp
index ddc3d11ce..4bbe1057d 100644
--- a/desktop-widgets/command_divelist.cpp
+++ b/desktop-widgets/command_divelist.cpp
@@ -382,7 +382,7 @@ AddDive::AddDive(dive *d, bool autogroup, bool newNumber)
fixup_dive(d);
// Get an owning pointer to a moved dive.
- OwningDivePtr divePtr(clone_dive(d));
+ OwningDivePtr divePtr(move_dive(d));
divePtr->selected = false; // If we clone a planned dive, it might have been selected.
// We have to clear the flag, as selections will be managed
// on dive-addition.