Use make unique to construct an object.

Change-Id: I4fd944869238c0a4c38676160cb752d523dc07a1
This commit is contained in:
Mrozek, Michal 2018-08-10 16:40:03 +02:00 committed by sys_ocldev
parent 1f3274e3dc
commit 9632d18071
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ DrmCommandStreamReceiver<GfxFamily>::DrmCommandStreamReceiver(const HardwareInfo
residency.reserve(512);
execObjectsStorage.reserve(512);
if (!executionEnvironment.osInterface) {
executionEnvironment.osInterface.reset(new OSInterface());
executionEnvironment.osInterface = std::make_unique<OSInterface>();
}
executionEnvironment.osInterface->get()->setDrm(this->drm);
CommandStreamReceiver::osInterface = executionEnvironment.osInterface.get();