forked from lix-project/lix
Use std::make_unique
This commit is contained in:
parent
73daffb81b
commit
20ea1de77d
|
@ -259,10 +259,8 @@ void DerivationGoal::loadDerivation()
|
||||||
|
|
||||||
assert(worker.store.isValidPath(drvPath));
|
assert(worker.store.isValidPath(drvPath));
|
||||||
|
|
||||||
auto fullDrv = new Derivation(worker.store.derivationFromPath(drvPath));
|
|
||||||
|
|
||||||
/* Get the derivation. */
|
/* Get the derivation. */
|
||||||
drv = std::unique_ptr<Derivation>(fullDrv);
|
drv = std::make_unique<Derivation>(worker.store.derivationFromPath(drvPath));
|
||||||
|
|
||||||
haveDerivation();
|
haveDerivation();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue