mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Rename enum values for taxonomy
This avoids confusion and namespace collisions. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
08f8eb6eb5
commit
bc8c54f1ee
10 changed files with 22 additions and 22 deletions
|
@ -176,7 +176,7 @@ void copy_dive_site(struct dive_site *orig, struct dive_site *copy)
|
|||
} else {
|
||||
if (copy->taxonomy.category == NULL)
|
||||
copy->taxonomy.category = alloc_taxonomy();
|
||||
for (int i = 0; i < NR_CATEGORIES; i++) {
|
||||
for (int i = 0; i < TC_NR_CATEGORIES; i++) {
|
||||
free((void *)copy->taxonomy.category[i].value);
|
||||
copy->taxonomy.category[i] = orig->taxonomy.category[i];
|
||||
copy->taxonomy.category[i].value = copy_string(orig->taxonomy.category[i].value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue