Create L2CapWiimote instances as shared_ptr

This commit is contained in:
capitalistspz 2024-09-26 01:37:15 +01:00
parent 919d26f6a2
commit 34f08a4edf

View File

@ -88,7 +88,7 @@ std::vector<WiimoteDevicePtr> L2CapWiimote::get_devices()
continue;
}
outDevices.push_back(std::make_unique<L2CapWiimote>(sendFd, recvFd));
outDevices.emplace_back(std::make_shared<L2CapWiimote>(sendFd, recvFd));
}
return outDevices;
}