diff options
author | Ankit Meel <ankitjmeel@gmail.com> | 2020-11-07 19:08:27 +0300 |
---|---|---|
committer | Ankit Meel <ankitjmeel@gmail.com> | 2020-11-07 19:22:53 +0300 |
commit | 4429b4b77ef6754739a3c2b4fabd0537999e9bdc (patch) | |
tree | b253409c27c0ea0c523be837cd734a9d670b4d88 /source/blender/makesrna | |
parent | 9cd9ea591f060b8f454c418a5ceceeba7146cd6b (diff) |
Cleanup: Clang-tidy, readability-non-const-parameter.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 361168bcf3f..a59a552c66d 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1662,7 +1662,7 @@ void RNA_property_enum_items(bContext *C, #ifdef WITH_INTERNATIONAL static void property_enum_translate(PropertyRNA *prop, EnumPropertyItem **r_item, - int *r_totitem, + const int *totitem, bool *r_free) { if (!(prop->flag & PROP_ENUM_NO_TRANSLATE)) { @@ -1684,8 +1684,8 @@ static void property_enum_translate(PropertyRNA *prop, const EnumPropertyItem *item = *r_item; int tot; - if (r_totitem) { - tot = *r_totitem; + if (totitem) { + tot = *totitem; } else { /* count */ |