mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 07:00:17 +08:00
refactor: migration to std::make_unique C++17
Signed-off-by: Semenov Herman (Семенов Герман) <GermanAizek@yandex.ru>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d50beb5df4
commit
4cf685cb7d
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -173,8 +173,8 @@ BuiltinResourceT EmbeddedStorage::loadImpl(const std::string &fullResourceName)
|
||||
}
|
||||
|
||||
BuiltinsLib::BuiltinsLib() {
|
||||
allStorages.push_back(std::unique_ptr<Storage>(new EmbeddedStorage("")));
|
||||
allStorages.push_back(std::unique_ptr<Storage>(new FileStorage(getDriverInstallationPath())));
|
||||
allStorages.push_back(std::make_unique<EmbeddedStorage>(""));
|
||||
allStorages.push_back(std::make_unique<FileStorage>(getDriverInstallationPath()));
|
||||
}
|
||||
|
||||
BuiltinCode BuiltinsLib::getBuiltinCode(EBuiltInOps::Type builtin, BuiltinCode::ECodeType requestedCodeType, Device &device) {
|
||||
|
||||
Reference in New Issue
Block a user