summaryrefslogtreecommitdiffhomepage
path: root/dinput
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-17 13:52:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-03-17 13:52:46 +0100
commit4eb8139c8a854a856ce108a0c79a932ab9b6da70 (patch)
treee10c14e81ac6c37e77db7300aac745c38a7f40d3 /dinput
parent949d847ed9df6d2d2a7931f3f69014aa56a5ab7c (diff)
compat/util: remove our make_unique custom impl
Diffstat (limited to 'dinput')
-rw-r--r--dinput/keybinding-worker.cpp2
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();