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; }