Skip to content

Commit e7845e2

Browse files
committed
Fix return type of GetInternalEventEmitter
Changed the return type of KeyboardMonitor::GetInternalEventEmitter to EventEmitter<KeyboardEvent>& for type correctness and consistency with its declaration.
1 parent 8ca8445 commit e7845e2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/keyboard_monitor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class KeyboardMonitor : public EventEmitter<KeyboardEvent> {
4545
bool IsMonitoring() const;
4646

4747
// Get access to the event emitter for internal use
48-
EventEmitter& GetInternalEventEmitter();
48+
EventEmitter<KeyboardEvent>& GetInternalEventEmitter();
4949

5050
private:
5151
class Impl;

src/platform/windows/keyboard_monitor_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ bool KeyboardMonitor::IsMonitoring() const {
123123
return impl_->hook_ != nullptr;
124124
}
125125

126-
EventEmitter& KeyboardMonitor::GetInternalEventEmitter() {
126+
EventEmitter<KeyboardEvent>& KeyboardMonitor::GetInternalEventEmitter() {
127127
return *this;
128128
}
129129

0 commit comments

Comments
 (0)