1
0
Fork 0

Fixed compilation warning on Mac

IOHIDManagerRegisterDeviceMatchingCallback must not be called with
nullptr as the second argument.
This commit is contained in:
Szymon Acedański 2017-01-22 14:15:12 +01:00
parent 006ca7186b
commit 4fd89b0b8f
2 changed files with 1 additions and 4 deletions

View file

@ -183,7 +183,7 @@ private:
class SymbolRule
{
public:
SymbolRule()
SymbolRule() : enabled(false)
{
}

View file

@ -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);