mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Correct handling unique_ptr in functions
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
f305e38b32
commit
28b37aea72
@ -148,7 +148,7 @@ class MockProgram : public Program {
|
||||
return this->build(getDevices(), this->options.c_str(), false, builtins);
|
||||
}
|
||||
|
||||
void replaceDeviceBinary(std::unique_ptr<char[]> newBinary, size_t newBinarySize, uint32_t rootDeviceIndex) override {
|
||||
void replaceDeviceBinary(std::unique_ptr<char[]> &&newBinary, size_t newBinarySize, uint32_t rootDeviceIndex) override {
|
||||
if (replaceDeviceBinaryCalledPerRootDevice.find(rootDeviceIndex) == replaceDeviceBinaryCalledPerRootDevice.end()) {
|
||||
replaceDeviceBinaryCalledPerRootDevice.insert({rootDeviceIndex, 1});
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user