From 97ca96bdee20411681d8bd49ab5fc2fbd06a67f0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 27 May 2020 10:13:01 -0700 Subject: [PATCH] Use nil instead of NULL for Objective-C objects --- src/video/cocoa/SDL_cocoawindow.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m index a669d4506..585468430 100644 --- a/src/video/cocoa/SDL_cocoawindow.m +++ b/src/video/cocoa/SDL_cocoawindow.m @@ -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;