diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-05-30 17:49:17 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-06-19 13:11:10 -0700 |
commit | e3304d8d7d800724cbfab352ebd783fb6722d21b (patch) | |
tree | fcf9bdc67cb497097ea0c8e65a11c46cc73ef888 /core/dive.c | |
parent | 9b787e06060877386990af1a4b0ea2525a872968 (diff) | |
download | subsurface-e3304d8d7d800724cbfab352ebd783fb6722d21b.tar.gz |
Cleanup: use taglist_copy() instead of STRUCTURED_LIST_COPY
There is a function for copying tag-lists, use that instead of the
raw STRUCTURED_LIST_COPY macro-invocation. This will help in moving
tag functions into their own translation unit.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/dive.c')
-rw-r--r-- | core/dive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/dive.c b/core/dive.c index 2f0e42abd..907ad40e7 100644 --- a/core/dive.c +++ b/core/dive.c @@ -614,7 +614,7 @@ static void copy_dive_nodc(const struct dive *s, struct dive *d) for (int i = 0; i < MAX_WEIGHTSYSTEMS; i++) d->weightsystem[i].description = copy_string(s->weightsystem[i].description); STRUCTURED_LIST_COPY(struct picture, s->picture_list, d->picture_list, copy_pl); - STRUCTURED_LIST_COPY(struct tag_entry, s->tag_list, d->tag_list, copy_tl); + d->tag_list = taglist_copy(s->tag_list); } void copy_dive(const struct dive *s, struct dive *d) |