Skip to content

Commit

Permalink
Use nil instead of NULL for Objective-C objects
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 27, 2020
1 parent 2aec184 commit 97ca96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1567,8 +1567,8 @@ - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
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;
Expand Down

0 comments on commit 97ca96b

Please sign in to comment.