Use get_ptr()

Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
This commit is contained in:
Eelco Dolstra 2022-12-12 12:46:13 +01:00 committed by GitHub
parent 037d5c4299
commit 877ea1dab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -569,8 +569,8 @@ LockedFlake lockFlake(
inputFlake.inputs, childNode, inputPath, inputFlake.inputs, childNode, inputPath,
oldLock oldLock
? std::dynamic_pointer_cast<const Node>(oldLock) ? std::dynamic_pointer_cast<const Node>(oldLock)
: (std::shared_ptr<Node>) LockFile::read( : LockFile::read(
inputFlake.sourceInfo->actualPath + "/" + inputFlake.lockedRef.subdir + "/flake.lock").root, inputFlake.sourceInfo->actualPath + "/" + inputFlake.lockedRef.subdir + "/flake.lock").root.get_ptr(),
oldLock ? lockRootPath : inputPath, oldLock ? lockRootPath : inputPath,
localPath, localPath,
false); false);
@ -600,7 +600,7 @@ LockedFlake lockFlake(
flake.inputs, flake.inputs,
newLockFile.root, newLockFile.root,
{}, {},
lockFlags.recreateLockFile ? nullptr : (std::shared_ptr<Node>) oldLockFile.root, lockFlags.recreateLockFile ? nullptr : oldLockFile.root.get_ptr(),
{}, {},
parentPath, parentPath,
false); false);