mirror of https://github.com/encounter/SDL.git
Use nil instead of NULL for Objective-C objects
This commit is contained in:
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