Fixed compilation warning on Mac
IOHIDManagerRegisterDeviceMatchingCallback must not be called with nullptr as the second argument.
This commit is contained in:
parent
006ca7186b
commit
4fd89b0b8f
2 changed files with 1 additions and 4 deletions
|
@ -183,7 +183,7 @@ private:
|
|||
class SymbolRule
|
||||
{
|
||||
public:
|
||||
SymbolRule()
|
||||
SymbolRule() : enabled(false)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -229,9 +229,6 @@ void FGMacOSXEventInput::shutdown()
|
|||
{
|
||||
FGEventInput::shutdown();
|
||||
|
||||
IOHIDManagerRegisterDeviceMatchingCallback(d->hidManager, nullptr, nullptr);
|
||||
IOHIDManagerRegisterDeviceRemovalCallback(d->hidManager, nullptr, nullptr);
|
||||
|
||||
IOHIDManagerClose(d->hidManager, kIOHIDOptionsTypeNone);
|
||||
IOHIDManagerUnscheduleFromRunLoop(d->hidManager, CFRunLoopGetCurrent(), kCFRunLoopDefaultMode);
|
||||
CFRelease(d->hidManager);
|
||||
|
|
Loading…
Reference in a new issue