Code Cleanup: remove redundant NULL checks and add function attributes

This commit is contained in:
2014-01-20 11:13:53 +11:00
parent 1728c1e284
commit 44855f9ef2
4 changed files with 39 additions and 33 deletions

View File

@@ -1362,7 +1362,7 @@ static void widget_draw_text_icon(uiFontStyle *fstyle, uiWidgetColors *wcol, uiB
/* menu item - add some more padding so menus don't feel cramped. it must
* be part of the button so that this area is still clickable */
if (but->block && ui_block_is_menu(but->block))
if (ui_block_is_menu(but->block))
rect->xmin += 0.3f * U.widget_unit;
widget_draw_icon(but, but->icon + but->iconadd, alpha, rect, show_menu_icon);