diff options
author | Hans Goudey <h.goudey@me.com> | 2022-07-29 00:02:15 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-07-29 00:02:15 +0300 |
commit | 72d8a40a3d7a3edcd804487d13b10709ecfa007e (patch) | |
tree | a9f32f77ea4eb8686070ba5f1f6232f9937b8053 /source/blender/blenkernel/BKE_screen.h | |
parent | cf61be619005493d6815be487ff557eaad3b3fa5 (diff) |
Cleanup: Use const context argument for UIList callbacks
Diffstat (limited to 'source/blender/blenkernel/BKE_screen.h')
-rw-r--r-- | source/blender/blenkernel/BKE_screen.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h index 3922bfb6c0d..a24a3e05dab 100644 --- a/source/blender/blenkernel/BKE_screen.h +++ b/source/blender/blenkernel/BKE_screen.h @@ -291,7 +291,7 @@ enum { /* Draw an item in the uiList */ typedef void (*uiListDrawItemFunc)(struct uiList *ui_list, - struct bContext *C, + const struct bContext *C, struct uiLayout *layout, struct PointerRNA *dataptr, struct PointerRNA *itemptr, @@ -303,12 +303,12 @@ typedef void (*uiListDrawItemFunc)(struct uiList *ui_list, /* Draw the filtering part of an uiList */ typedef void (*uiListDrawFilterFunc)(struct uiList *ui_list, - struct bContext *C, + const struct bContext *C, struct uiLayout *layout); /* Filter items of an uiList */ typedef void (*uiListFilterItemsFunc)(struct uiList *ui_list, - struct bContext *C, + const struct bContext *C, struct PointerRNA *, const char *propname); |