Cleanup: use const for context argument
This commit is contained in:
parent
3ca2697001
commit
beecd24fc6
|
@ -592,7 +592,7 @@ void WM_operator_py_idname(char *to, const char *from);
|
|||
bool WM_operator_py_idname_ok_or_report(struct ReportList *reports,
|
||||
const char *classname,
|
||||
const char *idname);
|
||||
char *WM_context_path_resolve_property_full(struct bContext *C,
|
||||
char *WM_context_path_resolve_property_full(const struct bContext *C,
|
||||
const PointerRNA *ptr,
|
||||
PropertyRNA *prop,
|
||||
int index);
|
||||
|
|
|
@ -423,7 +423,9 @@ static const char *wm_context_member_from_ptr(bContext *C, const PointerRNA *ptr
|
|||
* `object.data.bones["Bones"].use_deform` such paths are not useful for key-shortcuts,
|
||||
* so this function supports returning data-paths directly to context members that aren't ID types.
|
||||
*/
|
||||
static const char *wm_context_member_from_ptr(bContext *C, const PointerRNA *ptr, bool *r_is_id)
|
||||
static const char *wm_context_member_from_ptr(const bContext *C,
|
||||
const PointerRNA *ptr,
|
||||
bool *r_is_id)
|
||||
{
|
||||
const char *member_id = NULL;
|
||||
bool is_id = false;
|
||||
|
@ -607,7 +609,7 @@ static const char *wm_context_member_from_ptr(bContext *C, const PointerRNA *ptr
|
|||
/**
|
||||
* Calculate the path to `ptr` from context `C`, or return NULL if it can't be calculated.
|
||||
*/
|
||||
char *WM_context_path_resolve_property_full(bContext *C,
|
||||
char *WM_context_path_resolve_property_full(const bContext *C,
|
||||
const PointerRNA *ptr,
|
||||
PropertyRNA *prop,
|
||||
int index)
|
||||
|
|
Loading…
Reference in New Issue