More TODO cleanup.
This commit is contained in:
parent
bb10227642
commit
1375b3f21f
1
uipriv.h
1
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 *);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue