diff --git a/src/platform/macos/input.cpp b/src/platform/macos/input.cpp index 1b314047c53..b6e40521b27 100644 --- a/src/platform/macos/input.cpp +++ b/src/platform/macos/input.cpp @@ -267,7 +267,7 @@ const KeyCodeMap kKeyCodesMap[] = { request_accessibility_permission(); } BOOST_LOG(info) << "Received " << (is_keyboard_event ? "keyboard" : "mouse") << " event but " - << default_accessibility_log_msg(); + << default_accessibility_log_msg(); } } diff --git a/src/platform/macos/misc.mm b/src/platform/macos/misc.mm index 21f1c25db25..ade258033b0 100644 --- a/src/platform/macos/misc.mm +++ b/src/platform/macos/misc.mm @@ -528,17 +528,17 @@ operator bool() override { bool request_accessibility_permission() { - NSDictionary* options = @{static_cast (kAXTrustedCheckOptionPrompt): @YES}; - return !AXIsProcessTrustedWithOptions(static_cast (options)); + NSDictionary* options = @{static_cast(kAXTrustedCheckOptionPrompt): @YES}; + return !AXIsProcessTrustedWithOptions(static_cast(options)); } bool has_accessibility_permission() { - NSDictionary* options = @{static_cast (kAXTrustedCheckOptionPrompt): @NO}; + NSDictionary* options = @{static_cast(kAXTrustedCheckOptionPrompt): @NO}; // We use kAXTrustedCheckOptionPrompt == NO here, // instead of using XIsProcessTrusted(), // because this will update the accessibility list with sunshine current path - return AXIsProcessTrustedWithOptions(static_cast (options)); + return AXIsProcessTrustedWithOptions(static_cast(options)); } } // namespace platf