[Bf-blender-cvs] [2df27fa6cf8] master: Cleanup: Use const argument

Campbell Barton noreply at git.blender.org
Thu Jul 26 05:16:31 CEST 2018


Commit: 2df27fa6cf85a6b4534302a41d9588b550029b01
Author: Campbell Barton
Date:   Thu Jul 26 11:07:56 2018 +1000
Branches: master
https://developer.blender.org/rB2df27fa6cf85a6b4534302a41d9588b550029b01

Cleanup: Use const argument

===================================================================

M	source/blender/makesrna/RNA_access.h
M	source/blender/makesrna/intern/rna_access.c

===================================================================

diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h
index ffada6efd02..a026d8e875e 100644
--- a/source/blender/makesrna/RNA_access.h
+++ b/source/blender/makesrna/RNA_access.h
@@ -800,7 +800,7 @@ bool RNA_struct_bl_idname_ok_or_report(struct ReportList *reports, const char *i
 
 /* Property Information */
 
-const char *RNA_property_identifier(PropertyRNA *prop);
+const char *RNA_property_identifier(const PropertyRNA *prop);
 const char *RNA_property_description(PropertyRNA *prop);
 
 PropertyType RNA_property_type(PropertyRNA *prop);
diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c
index 2a74aedd60a..d805d6138a7 100644
--- a/source/blender/makesrna/intern/rna_access.c
+++ b/source/blender/makesrna/intern/rna_access.c
@@ -952,7 +952,7 @@ bool RNA_struct_bl_idname_ok_or_report(ReportList *reports, const char *identifi
 
 /* Property Information */
 
-const char *RNA_property_identifier(PropertyRNA *prop)
+const char *RNA_property_identifier(const PropertyRNA *prop)
 {
 	return rna_ensure_property_identifier(prop);
 }



More information about the Bf-blender-cvs mailing list