Skip to content

Commit a7c202b

Browse files
authored
Merge pull request #1493 from martygrant/martin/fixCoverityCTSErrors
[CTS] Fix Coverity warning: Add a & before auto so object is not copied unnecessarily
2 parents f85e2e9 + e548dc1 commit a7c202b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/conformance/usm/helpers.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ inline std::string printUSMAllocTestString(
1919
const auto device_handle = std::get<0>(info.param);
2020
const auto platform_device_name =
2121
uur::GetPlatformAndDeviceName(device_handle);
22-
const auto usmDeviceAllocParams = std::get<1>(info.param);
23-
const auto BoolParam = std::get<0>(usmDeviceAllocParams);
22+
const auto &usmDeviceAllocParams = std::get<1>(info.param);
23+
const auto &BoolParam = std::get<0>(usmDeviceAllocParams);
2424

2525
std::stringstream ss;
2626
ss << BoolParam.name << (BoolParam.value ? "Enabled" : "Disabled");

0 commit comments

Comments
 (0)