@@ -171,12 +171,13 @@ getOpenCLPlatform(DeviceType Type) {
171
171
172
172
std::map<DeviceType, std::vector<std::string>>
173
173
DeviceTypesToSupportedPlatformNames{
174
- {cpu, {StrIntelPlatformCommon, StrIntelPlatformCpuRt}},
174
+ {cpu, {StrIntelPlatformCommon, std::move ( StrIntelPlatformCpuRt) }},
175
175
{gpu,
176
- {StrIntelPlatformCommon, StrIntelPlatformNeoHd,
177
- StrIntelPlatformNeoUhd}},
176
+ {StrIntelPlatformCommon, std::move ( StrIntelPlatformNeoHd) ,
177
+ std::move ( StrIntelPlatformNeoUhd) }},
178
178
{fpga_fast_emu,
179
- {StrIntelPlatformFastEmu, StrIntelPlatformFastEmuPreview}}};
179
+ {std::move (StrIntelPlatformFastEmu),
180
+ std::move (StrIntelPlatformFastEmuPreview)}}};
180
181
181
182
cl_platform_id PlatformId (nullptr );
182
183
cl_int CLErr (CL_SUCCESS);
@@ -234,7 +235,7 @@ getOpenCLPlatform(DeviceType Type) {
234
235
tie (std::ignore, ErrorMessage, CLErr) = getOpenCLDevice (Platform, Type);
235
236
if (!clFailed (CLErr)) {
236
237
PlatformId = Platform;
237
- PlatformName = PlatformNameOnLoopIteration;
238
+ PlatformName = std::move ( PlatformNameOnLoopIteration) ;
238
239
break ;
239
240
}
240
241
}
0 commit comments