- use static vars and functions where possible.

- use NULL rather than 0 when used as pointers.
This commit is contained in:
2011-08-28 05:06:30 +00:00
parent c73d5b939d
commit fa2ba5fbf5
28 changed files with 68 additions and 61 deletions

View File

@@ -1361,7 +1361,7 @@ void uiItemPointerR(uiLayout *layout, struct PointerRNA *ptr, const char *propna
static void ui_item_menutype_func(bContext *C, uiLayout *layout, void *arg_mt)
{
MenuType *mt= (MenuType*)arg_mt;
Menu menu = {0};
Menu menu = {NULL};
menu.type= mt;
menu.layout= layout;