diff options
author | Hans Goudey <h.goudey@me.com> | 2020-10-05 17:31:32 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-10-05 17:31:32 +0300 |
commit | 0a0e88b6455e9c46167dcd17afaa0527ddedd3f8 (patch) | |
tree | 87c7ccc5c55b9d4fd8dadea7b2f07ad44a7dd06f /source/blender/editors | |
parent | 7f3fe5b45c1826e46ffc4f6e96d3fafb8e01af3d (diff) |
Cleanup: Use short for properties editor tab list
Because the active context is stored as a short in DNA it's better
to use short in the code surrounding it. Also adjusted a comment
that reflected an incorrect assumption.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/include/ED_buttons.h | 2 | ||||
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/include/ED_buttons.h b/source/blender/editors/include/ED_buttons.h index ccef62eb8d2..a4cd2525af3 100644 --- a/source/blender/editors/include/ED_buttons.h +++ b/source/blender/editors/include/ED_buttons.h @@ -28,7 +28,7 @@ extern "C" { struct SpaceProperties; -int ED_buttons_tabs_list(struct SpaceProperties *sbuts, int *context_tabs_array); +int ED_buttons_tabs_list(struct SpaceProperties *sbuts, short *context_tabs_array); #ifdef __cplusplus } diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index a4eddd460b0..8c1030f6fc4 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -156,7 +156,7 @@ static void buttons_main_region_init(wmWindowManager *wm, ARegion *region) * * \return The total number of items in the array returned. */ -int ED_buttons_tabs_list(SpaceProperties *sbuts, int *context_tabs_array) +int ED_buttons_tabs_list(SpaceProperties *sbuts, short *context_tabs_array) { int length = 0; if (sbuts->pathflag & (1 << BCONTEXT_TOOL)) { |