diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-04 17:26:43 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-12-04 17:26:43 +0300 |
commit | 3533e082a046a4804448633fbccc62acbf4d6611 (patch) | |
tree | 0a588e3eadd01ec1339820d7e419e13b515f7994 /source/blender/makesrna | |
parent | 0f8228a890c3b0906d88e34ac75d0246a65dfe55 (diff) |
RNA: Use const qualifier for an utility function
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index 97fd216b5f5..7e8c860863d 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -1127,7 +1127,7 @@ bool RNA_property_is_set(PointerRNA *ptr, PropertyRNA *prop); void RNA_property_unset(PointerRNA *ptr, PropertyRNA *prop); bool RNA_struct_property_is_set_ex(PointerRNA *ptr, const char *identifier, bool use_ghost); bool RNA_struct_property_is_set(PointerRNA *ptr, const char *identifier); -bool RNA_property_is_idprop(PropertyRNA *prop); +bool RNA_property_is_idprop(const PropertyRNA *prop); bool RNA_property_is_unlink(PropertyRNA *prop); void RNA_struct_property_unset(PointerRNA *ptr, const char *identifier); diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index af3a48882ca..471db22af8e 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -5683,7 +5683,7 @@ void RNA_struct_property_unset(PointerRNA *ptr, const char *identifier) } } -bool RNA_property_is_idprop(PropertyRNA *prop) +bool RNA_property_is_idprop(const PropertyRNA *prop) { return (prop->magic != RNA_MAGIC); } |