More TODO cleanup.

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

View File

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

View File

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