diff options
author | Hans Goudey <h.goudey@me.com> | 2020-12-04 17:01:54 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-12-04 17:01:54 +0300 |
commit | 4bb531475490c36c57065fb3db3d41974fb14897 (patch) | |
tree | 78a7190cdcbac327d57962dfb783c206b23f9d6d /source/blender/editors/include/UI_interface.h | |
parent | 6fda30cc54d24730d81b96b2e3b542bf94f52137 (diff) |
Cleanup: Use typedef for button string info type
Before, it wasn't clear what the int in `uiStringInfo` was supposed to
store. Using a typedef can make this someone more explicit.
Diffstat (limited to 'source/blender/editors/include/UI_interface.h')
-rw-r--r-- | source/blender/editors/include/UI_interface.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h index f9dc23502c7..a190194d89d 100644 --- a/source/blender/editors/include/UI_interface.h +++ b/source/blender/editors/include/UI_interface.h @@ -1351,7 +1351,7 @@ struct PointerRNA *UI_but_operator_ptr_get(uiBut *but); void UI_but_unit_type_set(uiBut *but, const int unit_type); int UI_but_unit_type_get(const uiBut *but); -enum { +typedef enum uiStringInfoType { BUT_GET_RNAPROP_IDENTIFIER = 1, BUT_GET_RNASTRUCT_IDENTIFIER, BUT_GET_RNAENUM_IDENTIFIER, @@ -1364,10 +1364,10 @@ enum { BUT_GET_RNAENUM_TIP, BUT_GET_OP_KEYMAP, BUT_GET_PROP_KEYMAP, -}; +} uiStringInfoType; typedef struct uiStringInfo { - int type; + uiStringInfoType type; char *strinfo; } uiStringInfo; |