diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-20 11:06:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-20 16:11:57 +0300 |
commit | d00c54c855d44a81f8793fb380e7b7e4c3979a30 (patch) | |
tree | 96a683256819cfb25eea45ea42ae395cb4eba40d /source/blender/makesrna/RNA_access.h | |
parent | 88d2d82031eafa36c4dc7836d0d8e535b5e6e1f3 (diff) |
Cleanup: reorder report argument for pointer assignment
Most code uses ReportList argument last (or at least not first)
when an optional report list can be passed in.
Diffstat (limited to 'source/blender/makesrna/RNA_access.h')
-rw-r--r-- | source/blender/makesrna/RNA_access.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/makesrna/RNA_access.h b/source/blender/makesrna/RNA_access.h index e3be9fd64be..4d9ba2cca42 100644 --- a/source/blender/makesrna/RNA_access.h +++ b/source/blender/makesrna/RNA_access.h @@ -1031,12 +1031,12 @@ void *RNA_property_enum_py_data_get(PropertyRNA *prop); int RNA_property_enum_step( const struct bContext *C, PointerRNA *ptr, PropertyRNA *prop, int from_value, int step); -PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop); -void RNA_property_pointer_set(struct ReportList *reports, - PointerRNA *ptr, +PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop) ATTR_NONNULL(1, 2); +void RNA_property_pointer_set(PointerRNA *ptr, PropertyRNA *prop, - PointerRNA ptr_value); -PointerRNA RNA_property_pointer_get_default(PointerRNA *ptr, PropertyRNA *prop); + PointerRNA ptr_value, + struct ReportList *reports) ATTR_NONNULL(1, 2); +PointerRNA RNA_property_pointer_get_default(PointerRNA *ptr, PropertyRNA *prop) ATTR_NONNULL(1, 2); void RNA_property_collection_begin(PointerRNA *ptr, PropertyRNA *prop, |