From bca7d15ce039e5a9c3620f7bbce00246f537fd5a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Apr 2014 22:55:10 +1000 Subject: Code cleanup: use const for rna --- source/blender/makesrna/RNA_access.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'source/blender/makesrna/RNA_access.h') diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index f385d61601a..b231d0587dd 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -692,22 +692,22 @@ extern const PointerRNA PointerRNA_NULL; StructRNA *RNA_struct_find(const char *identifier); -const char *RNA_struct_identifier(StructRNA *type); -const char *RNA_struct_ui_name(StructRNA *type); -const char *RNA_struct_ui_name_raw(StructRNA *type); -const char *RNA_struct_ui_description(StructRNA *type); -const char *RNA_struct_ui_description_raw(StructRNA *type); -const char *RNA_struct_translation_context(StructRNA *type); -int RNA_struct_ui_icon(StructRNA *type); +const char *RNA_struct_identifier(const StructRNA *type); +const char *RNA_struct_ui_name(const StructRNA *type); +const char *RNA_struct_ui_name_raw(const StructRNA *type); +const char *RNA_struct_ui_description(const StructRNA *type); +const char *RNA_struct_ui_description_raw(const StructRNA *type); +const char *RNA_struct_translation_context(const StructRNA *type); +int RNA_struct_ui_icon(const StructRNA *type); PropertyRNA *RNA_struct_name_property(StructRNA *type); PropertyRNA *RNA_struct_iterator_property(StructRNA *type); StructRNA *RNA_struct_base(StructRNA *type); -bool RNA_struct_is_ID(StructRNA *type); -bool RNA_struct_is_a(StructRNA *type, StructRNA *srna); +bool RNA_struct_is_ID(const StructRNA *type); +bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna); -bool RNA_struct_undo_check(StructRNA *type); +bool RNA_struct_undo_check(const StructRNA *type); StructRegisterFunc RNA_struct_register(StructRNA *type); StructUnregisterFunc RNA_struct_unregister(StructRNA *type); @@ -721,7 +721,7 @@ void RNA_struct_blender_type_set(StructRNA *srna, void *blender_type); struct IDProperty *RNA_struct_idprops(PointerRNA *ptr, bool create); bool RNA_struct_idprops_check(StructRNA *srna); -bool RNA_struct_idprops_register_check(StructRNA *type); +bool RNA_struct_idprops_register_check(const StructRNA *type); bool RNA_struct_idprops_unset(PointerRNA *ptr, const char *identifier); PropertyRNA *RNA_struct_find_property(PointerRNA *ptr, const char *identifier); -- cgit v1.2.3