mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 01:45:45 +00:00
Use nil instead of NULL for Objective-C objects
This commit is contained in:
parent
2aec184e36
commit
97ca96bdee
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue