From 34f08a4edfef267ca6b0e0e4417809adb889cd68 Mon Sep 17 00:00:00 2001 From: capitalistspz Date: Thu, 26 Sep 2024 01:37:15 +0100 Subject: [PATCH] Create `L2CapWiimote` instances as `shared_ptr` --- src/input/api/Wiimote/l2cap/L2CapWiimote.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/api/Wiimote/l2cap/L2CapWiimote.cpp b/src/input/api/Wiimote/l2cap/L2CapWiimote.cpp index bcd669ef..35271146 100644 --- a/src/input/api/Wiimote/l2cap/L2CapWiimote.cpp +++ b/src/input/api/Wiimote/l2cap/L2CapWiimote.cpp @@ -88,7 +88,7 @@ std::vector L2CapWiimote::get_devices() continue; } - outDevices.push_back(std::make_unique(sendFd, recvFd)); + outDevices.emplace_back(std::make_shared(sendFd, recvFd)); } return outDevices; }