Commit 97ca96bdee20411681d8bd49ab5fc2fbd06a67f0

Sam Lantinga 2020-05-27T10:13:01

Use nil instead of NULL for Objective-C objects

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index a669d45..5854684 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;