Skip to content

Commit

Permalink
Merge pull request #1493 from martygrant/martin/fixCoverityCTSErrors
Browse files Browse the repository at this point in the history
[CTS] Fix Coverity warning: Add a & before auto so object is not copied unnecessarily
  • Loading branch information
martygrant committed Apr 8, 2024
2 parents f85e2e9 + e548dc1 commit a7c202b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/conformance/usm/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ inline std::string printUSMAllocTestString(
const auto device_handle = std::get<0>(info.param);
const auto platform_device_name =
uur::GetPlatformAndDeviceName(device_handle);
const auto usmDeviceAllocParams = std::get<1>(info.param);
const auto BoolParam = std::get<0>(usmDeviceAllocParams);
const auto &usmDeviceAllocParams = std::get<1>(info.param);
const auto &BoolParam = std::get<0>(usmDeviceAllocParams);

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

0 comments on commit a7c202b

Please sign in to comment.