More TODO cleanup.

This commit is contained in:
Pietro Gagliardi 2015-04-07 22:48:02 -04:00
parent bb10227642
commit 1375b3f21f
2 changed files with 1 additions and 2 deletions

View File

@ -19,7 +19,6 @@ struct uiControl {
};
extern void *uiAlloc(size_t);
// TODO use this in existing files
#define uiNew(T) ((T *) uiAlloc(sizeof (T)))
extern void *uiRealloc(void *, size_t);
extern void uiFree(void *);

View File

@ -81,7 +81,7 @@ uiWindow *uiNewWindow(char *title, int width, int height)
RECT adjust;
WCHAR *wtitle;
w = (uiWindow *) uiAlloc(sizeof (uiWindow));
w = uiNew(uiWindow);
w->onClosing = defaultOnClosing;
adjust.left = 0;