summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/dive.c2
-rw-r--r--core/dive.h2
-rw-r--r--desktop-widgets/command_divelist.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/core/dive.c b/core/dive.c
index b8162edd0..2b3b7ef62 100644
--- a/core/dive.c
+++ b/core/dive.c
@@ -637,7 +637,7 @@ static void copy_dive_onedc(const struct dive *s, const struct divecomputer *sdc
* this is specifically so we can create a dive in the displayed_dive and then
* add it to the divelist.
* Note the difference to copy_dive() / clean_dive() */
-struct dive *clone_dive(struct dive *s)
+struct dive *move_dive(struct dive *s)
{
struct dive *dive = alloc_dive();
*dive = *s; // so all the pointers in dive point to the things s pointed to
diff --git a/core/dive.h b/core/dive.h
index e26e0e02e..5efb24cca 100644
--- a/core/dive.h
+++ b/core/dive.h
@@ -517,7 +517,7 @@ extern void record_dive(struct dive *dive);
extern void clear_dive(struct dive *dive);
extern void copy_dive(const struct dive *s, struct dive *d);
extern void selective_copy_dive(const struct dive *s, struct dive *d, struct dive_components what, bool clear);
-extern struct dive *clone_dive(struct dive *s);
+extern struct dive *move_dive(struct dive *s);
extern void alloc_samples(struct divecomputer *dc, int num);
extern void free_samples(struct divecomputer *dc);
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.