1
0
Fork 0

Fix: [OSX] Compiler warning about an unused NULL argument.

pull/6745/head
Michael Lutz 2018-04-21 22:16:27 +02:00
parent a4df8bc246
commit e0ae67cefa
1 changed files with 6 additions and 1 deletions

View File

@ -1349,7 +1349,12 @@ static const char *Utf8AdvanceByUtf16Units(const char *str, NSUInteger count)
NSPoint loc = [ driver->cocoaview convertPoint:[ [ aNotification object ] mouseLocationOutsideOfEventStream ] fromView:nil ];
BOOL inside = ([ driver->cocoaview hitTest:loc ] == driver->cocoaview);
if (inside) [ driver->cocoaview mouseEntered:NULL ];
if (inside) {
/* We don't care about the event, but the compiler does. */
NSEvent *e = [ [ NSEvent alloc ] init ];
[ driver->cocoaview mouseEntered:e ];
[ e release ];
}
}
@end