diff options
author | Hans Goudey <h.goudey@me.com> | 2021-01-05 02:35:14 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-01-05 02:35:14 +0300 |
commit | 9b17e71c23a9bb0d5699d35d4a8703368eea3f6b (patch) | |
tree | d05c382d8ddf9e4d087e531d57e6a8383960cc34 /source/blender/editors | |
parent | 5a6dfb7571c8db18dd7056c871ba1a651384a336 (diff) |
Cleanup: Use flag type explicitly
Using the `uiButtonGroupFlag` type explicitly can avoid the need
to look up which enum should be used as an argument.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_button_group.c | 2 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_intern.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_button_group.c b/source/blender/editors/interface/interface_button_group.c index 90479eaee94..4e7da4ada33 100644 --- a/source/blender/editors/interface/interface_button_group.c +++ b/source/blender/editors/interface/interface_button_group.c @@ -32,7 +32,7 @@ * Every function that adds a set of buttons must create another group, * then #ui_def_but adds buttons to the current group (the last). */ -void ui_block_new_button_group(uiBlock *block, short flag) +void ui_block_new_button_group(uiBlock *block, uiButtonGroupFlag flag) { /* Don't create a new group if there is a "lock" on new groups. */ if (!BLI_listbase_is_empty(&block->button_groups)) { diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h index c005b456b6a..441e6db331d 100644 --- a/source/blender/editors/interface/interface_intern.h +++ b/source/blender/editors/interface/interface_intern.h @@ -1039,7 +1039,7 @@ void ui_item_menutype_func(struct bContext *C, struct uiLayout *layout, void *ar void ui_item_paneltype_func(struct bContext *C, struct uiLayout *layout, void *arg_pt); /* interface_button_group.c */ -void ui_block_new_button_group(uiBlock *block, short flag); +void ui_block_new_button_group(uiBlock *block, uiButtonGroupFlag flag); void ui_button_group_add_but(uiBlock *block, uiBut *but); void ui_button_group_replace_but_ptr(uiBlock *block, const void *old_but_ptr, uiBut *new_but); void ui_block_free_button_groups(uiBlock *block); |