Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: ReenigneArcher <[email protected]>
  • Loading branch information
cathyjf and ReenigneArcher authored Nov 2, 2024
1 parent cca03f1 commit ae90cf1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion src/platform/macos/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
#include <CoreGraphics/CoreGraphics.h>

namespace platf {
bool is_screen_capture_allowed();
bool
is_screen_capture_allowed();
}

namespace dyn {
Expand Down
11 changes: 5 additions & 6 deletions src/platform/macos/misc.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool>{ false };
} ///< This anonymous namespace prevents access to its contents outside of this file.
auto screen_capture_allowed = std::atomic<bool> { 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;
}

Expand Down

0 comments on commit ae90cf1

Please sign in to comment.