From 1375b3f21f83bef8c5c6995a4f06861d91c3f294 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 22:48:02 -0400 Subject: [PATCH] More TODO cleanup. --- uipriv.h | 1 - window_windows.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/uipriv.h b/uipriv.h index e7d32375..ccd72e84 100644 --- a/uipriv.h +++ b/uipriv.h @@ -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 *); diff --git a/window_windows.c b/window_windows.c index 1952b152..ed2cea35 100644 --- a/window_windows.c +++ b/window_windows.c @@ -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;