Use nil instead of NULL for Objective-C objects
parent
2aec184e36
commit
97ca96bdee
|
@ -1567,8 +1567,8 @@ int
|
||||||
Cocoa_CreateWindowFrom(_THIS, SDL_Window * window, const void *data)
|
Cocoa_CreateWindowFrom(_THIS, SDL_Window * window, const void *data)
|
||||||
{ @autoreleasepool
|
{ @autoreleasepool
|
||||||
{
|
{
|
||||||
NSView* nsview = NULL;
|
NSView* nsview = nil;
|
||||||
NSWindow *nswindow = NULL;
|
NSWindow *nswindow = nil;
|
||||||
|
|
||||||
if ([(id)data isKindOfClass:[NSWindow class]]) {
|
if ([(id)data isKindOfClass:[NSWindow class]]) {
|
||||||
nswindow = (NSWindow*)data;
|
nswindow = (NSWindow*)data;
|
||||||
|
|
Loading…
Reference in New Issue