mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-02-17 20:34:28 +01:00
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)
|
||||
{ @autoreleasepool
|
||||
{
|
||||
NSView* nsview = NULL;
|
||||
NSWindow *nswindow = NULL;
|
||||
NSView* nsview = nil;
|
||||
NSWindow *nswindow = nil;
|
||||
|
||||
if ([(id)data isKindOfClass:[NSWindow class]]) {
|
||||
nswindow = (NSWindow*)data;
|
||||
|
Loading…
Reference in New Issue
Block a user