Skip to content

Commit 2340497

Browse files
committed
chore: lint fixes
1 parent b05c75c commit 2340497

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/platform/macos/input.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ const KeyCodeMap kKeyCodesMap[] = {
260260
request_accessibility_permission();
261261
}
262262
BOOST_LOG(info) << "Received " << (is_keyboard_event ? "keyboard" : "mouse") << " event but "
263-
<< default_accessibility_log_msg();
263+
<< default_accessibility_log_msg();
264264
}
265265
}
266266

src/platform/macos/misc.mm

+4-4
Original file line numberDiff line numberDiff line change
@@ -521,17 +521,17 @@
521521

522522
bool
523523
request_accessibility_permission() {
524-
NSDictionary* options = @{static_cast<id> (kAXTrustedCheckOptionPrompt): @YES};
525-
return !AXIsProcessTrustedWithOptions(static_cast<CFDictionaryRef> (options));
524+
NSDictionary* options = @{static_cast<id>(kAXTrustedCheckOptionPrompt): @YES};
525+
return !AXIsProcessTrustedWithOptions(static_cast<CFDictionaryRef>(options));
526526
}
527527

528528
bool
529529
has_accessibility_permission() {
530-
NSDictionary* options = @{static_cast<id> (kAXTrustedCheckOptionPrompt): @NO};
530+
NSDictionary* options = @{static_cast<id>(kAXTrustedCheckOptionPrompt): @NO};
531531
// We use kAXTrustedCheckOptionPrompt == NO here,
532532
// instead of using XIsProcessTrusted(),
533533
// because this will update the accessibility list with sunshine current path
534-
return AXIsProcessTrustedWithOptions(static_cast<CFDictionaryRef> (options));
534+
return AXIsProcessTrustedWithOptions(static_cast<CFDictionaryRef>(options));
535535
}
536536

537537
} // namespace platf

0 commit comments

Comments
 (0)