@@ -213,18 +213,17 @@ static void filterDeviceFilter(std::vector<RT::PiDevice> &PiDevices,
213213 Plugin.setLastDeviceId (Platform, DeviceNum);
214214}
215215
216- std::shared_ptr<device_impl> platform_impl::getDeviceImpl (
217- RT::PiDevice PiDevice, const std::shared_ptr<platform_impl> &PlatformImpl ) {
216+ std::shared_ptr<device_impl>
217+ platform_impl::getDeviceImpl ( RT::PiDevice PiDevice) {
218218 const std::lock_guard<std::mutex> Guard (MDeviceMapMutex);
219- return getDeviceImplHelper (PiDevice, PlatformImpl );
219+ return getDeviceImplHelper (PiDevice);
220220}
221221
222222std::shared_ptr<device_impl> platform_impl::getOrMakeDeviceImpl (
223223 RT::PiDevice PiDevice, const std::shared_ptr<platform_impl> &PlatformImpl) {
224224 const std::lock_guard<std::mutex> Guard (MDeviceMapMutex);
225225 // If we've already seen this device, return the impl
226- std::shared_ptr<device_impl> Result =
227- getDeviceImplHelper (PiDevice, PlatformImpl);
226+ std::shared_ptr<device_impl> Result = getDeviceImplHelper (PiDevice);
228227 if (Result)
229228 return Result;
230229
@@ -336,8 +335,8 @@ bool platform_impl::has(aspect Aspect) const {
336335 return true ;
337336}
338337
339- std::shared_ptr<device_impl> platform_impl::getDeviceImplHelper (
340- RT::PiDevice PiDevice, const std::shared_ptr<platform_impl> &PlatformImpl ) {
338+ std::shared_ptr<device_impl>
339+ platform_impl::getDeviceImplHelper ( RT::PiDevice PiDevice) {
341340 for (const std::weak_ptr<device_impl> &DeviceWP : MDeviceCache) {
342341 if (std::shared_ptr<device_impl> Device = DeviceWP.lock ()) {
343342 if (Device->getHandleRef () == PiDevice)
0 commit comments