diff options
Diffstat (limited to 'dinput')
-rw-r--r-- | dinput/keybinding-worker.cpp | 2 | ||||
-rw-r--r-- | dinput/keybinding-worker.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/dinput/keybinding-worker.cpp b/dinput/keybinding-worker.cpp index aa8faca8..e4cc6659 100644 --- a/dinput/keybinding-worker.cpp +++ b/dinput/keybinding-worker.cpp @@ -210,7 +210,7 @@ bool KeybindingWorker::run_joystick_nolock() return true; } -KeybindingWorker::fun* KeybindingWorker::_add_receiver(fun& receiver) +KeybindingWorker::fun* KeybindingWorker::add_receiver(fun& receiver) { QMutexLocker l(&mtx); receivers.push_back(std::make_unique<fun>(receiver)); diff --git a/dinput/keybinding-worker.hpp b/dinput/keybinding-worker.hpp index d1dc4149..fdcf94c9 100644 --- a/dinput/keybinding-worker.hpp +++ b/dinput/keybinding-worker.hpp @@ -63,7 +63,7 @@ private: KeybindingWorker(); static KeybindingWorker& make(); - fun* _add_receiver(fun &receiver); + fun* add_receiver(fun& receiver); void remove_receiver(fun* pos); ~KeybindingWorker() override; @@ -83,7 +83,7 @@ public: } Token(fun receiver) { - pos = make()._add_receiver(receiver); + pos = make().add_receiver(receiver); } }; }; |