From ae90cf1084246c61a56386eab924c954fde204f3 Mon Sep 17 00:00:00 2001 From: "Cathy J. Fitzpatrick" Date: Sat, 2 Nov 2024 08:45:11 -0700 Subject: [PATCH] Apply suggestions from code review Co-authored-by: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> --- src/platform/macos/misc.h | 3 ++- src/platform/macos/misc.mm | 11 +++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/platform/macos/misc.h b/src/platform/macos/misc.h index 30b1c06f2e8..47d22ed4eca 100644 --- a/src/platform/macos/misc.h +++ b/src/platform/macos/misc.h @@ -9,7 +9,8 @@ #include namespace platf { - bool is_screen_capture_allowed(); + bool + is_screen_capture_allowed(); } namespace dyn { diff --git a/src/platform/macos/misc.mm b/src/platform/macos/misc.mm index 31f0cc4f450..cee850dcdf7 100644 --- a/src/platform/macos/misc.mm +++ b/src/platform/macos/misc.mm @@ -43,13 +43,12 @@ #endif namespace { - /// @brief This variable will be set to true if and only if we determine that this - /// process has been granted the screen capture permission. - auto screen_capture_allowed = std::atomic{ false }; - } ///< This anonymous namespace prevents access to its contents outside of this file. + auto screen_capture_allowed = std::atomic { false }; + } // namespace - /// Return whether screen capture is allowed for this process. - bool is_screen_capture_allowed() { + // Return whether screen capture is allowed for this process. + bool + is_screen_capture_allowed() { return screen_capture_allowed; }