mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
879f52180c
commit
ac590235c9
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue