refactor: modernize unique_ptr initialization
Related-To: NEO-12634 Signed-off-by: Wojciech Konior <wojciech.konior@intel.com>
This commit is contained in:
parent
b7dfc5c1de
commit
4a375c80e7
|
@ -32,7 +32,7 @@ const DeviceDescriptor deviceDescriptorTable[] = {
|
|||
{0, nullptr, nullptr, ""}};
|
||||
|
||||
Drm *Drm::create(std::unique_ptr<HwDeviceIdDrm> &&hwDeviceId, RootDeviceEnvironment &rootDeviceEnvironment) {
|
||||
auto drm = std::unique_ptr<Drm>(new Drm(std::move(hwDeviceId), rootDeviceEnvironment));
|
||||
std::unique_ptr<Drm> drm{new Drm(std::move(hwDeviceId), rootDeviceEnvironment)};
|
||||
|
||||
if (!drm->queryDeviceIdAndRevision()) {
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in New Issue