Cleanup: Use const argument for context
This commit is contained in:
parent
5cb1e18f72
commit
38ebac86cc
|
@ -2405,9 +2405,12 @@ void uiItemS_ex(uiLayout *layout, float factor);
|
|||
void uiItemSpacer(uiLayout *layout);
|
||||
|
||||
void uiItemPopoverPanel_ptr(
|
||||
uiLayout *layout, struct bContext *C, struct PanelType *pt, const char *name, int icon);
|
||||
void uiItemPopoverPanel(
|
||||
uiLayout *layout, struct bContext *C, const char *panel_type, const char *name, int icon);
|
||||
uiLayout *layout, const struct bContext *C, struct PanelType *pt, const char *name, int icon);
|
||||
void uiItemPopoverPanel(uiLayout *layout,
|
||||
const struct bContext *C,
|
||||
const char *panel_type,
|
||||
const char *name,
|
||||
int icon);
|
||||
void uiItemPopoverPanelFromGroup(uiLayout *layout,
|
||||
struct bContext *C,
|
||||
int space_id,
|
||||
|
|
|
@ -3038,7 +3038,7 @@ void uiItemDecoratorR(uiLayout *layout, PointerRNA *ptr, const char *propname, i
|
|||
|
||||
/* popover */
|
||||
void uiItemPopoverPanel_ptr(
|
||||
uiLayout *layout, bContext *C, PanelType *pt, const char *name, int icon)
|
||||
uiLayout *layout, const bContext *C, PanelType *pt, const char *name, int icon)
|
||||
{
|
||||
if (!name) {
|
||||
name = CTX_IFACE_(pt->translation_context, pt->label);
|
||||
|
@ -3067,7 +3067,7 @@ void uiItemPopoverPanel_ptr(
|
|||
}
|
||||
|
||||
void uiItemPopoverPanel(
|
||||
uiLayout *layout, bContext *C, const char *panel_type, const char *name, int icon)
|
||||
uiLayout *layout, const bContext *C, const char *panel_type, const char *name, int icon)
|
||||
{
|
||||
PanelType *pt = WM_paneltype_find(panel_type, true);
|
||||
if (pt == NULL) {
|
||||
|
|
Loading…
Reference in New Issue