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:
Compute-Runtime-Validation
2025-01-09 01:11:44 +01:00
committed by Compute-Runtime-Automation
parent 4cf685cb7d
commit 58707e0cf7
17 changed files with 32 additions and 31 deletions

View File

@@ -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;