Use nil instead of NULL for Objective-C objects

Sam Lantinga 2020-05-27 10:13:01 -07:00
parent 2aec184e36
commit 97ca96bdee
1 changed files with 2 additions and 2 deletions

View File

@ -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;