We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 432b74d commit 9f68495Copy full SHA for 9f68495
src/keyboard_monitor_macos.mm
@@ -12,14 +12,13 @@
12
13
class KeyboardMonitor::Impl {
14
public:
15
- Impl(KeyboardMonitor* monitor) : monitor_(monitor) {}
+ Impl() {}
16
17
CFMachPortRef eventTap = nullptr;
18
CFRunLoopSourceRef runLoopSource = nullptr;
19
- KeyboardMonitor* monitor_;
20
};
21
22
-KeyboardMonitor::KeyboardMonitor() : impl_(std::make_unique<Impl>(this)), event_handler_(nullptr) {}
+KeyboardMonitor::KeyboardMonitor() : impl_(), event_handler_(nullptr) {}
23
24
KeyboardMonitor::~KeyboardMonitor() {
25
Stop();
0 commit comments