mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-18 13:54:58 +08:00
Revert "refactor: migration to std::make_unique C++17"
This reverts commit 4cf685cb7d.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
4cf685cb7d
commit
58707e0cf7
@@ -143,7 +143,7 @@ std::vector<char> OclocArgHelper::readBinaryFile(const std::string &filename) {
|
||||
std::unique_ptr<char[]> OclocArgHelper::loadDataFromFile(const std::string &filename, size_t &retSize) {
|
||||
if (Source *s = findSourceFile(filename)) {
|
||||
auto size = s->length;
|
||||
auto ret = std::make_unique<char[]>(size);
|
||||
std::unique_ptr<char[]> ret(new char[size]());
|
||||
memcpy_s(ret.get(), size, s->data, s->length);
|
||||
retSize = s->length;
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user