diff options
Diffstat (limited to 'dinput')
-rw-r--r-- | dinput/keybinding-worker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dinput/keybinding-worker.cpp b/dinput/keybinding-worker.cpp index 5fbde31c..b94b762e 100644 --- a/dinput/keybinding-worker.cpp +++ b/dinput/keybinding-worker.cpp @@ -168,7 +168,7 @@ void KeybindingWorker::run() KeybindingWorker::fun* KeybindingWorker::_add_receiver(fun& receiver) { QMutexLocker l(&mtx); - receivers.push_back(std::unique_ptr<fun>(new fun(receiver))); + receivers.push_back(std::make_unique<fun>(receiver)); fun* f = receivers[receivers.size() - 1].get(); //qDebug() << "add receiver" << (long) f; joy_ctx.refresh(); |