mirror of
https://github.com/NixOS/nix
synced 2025-06-27 21:01:16 +02:00
absPath(): Use std::optional
This commit is contained in:
parent
6fadb3fc03
commit
1bf9eb21b7
2 changed files with 4 additions and 4 deletions
|
@ -46,7 +46,7 @@ void clearEnv();
|
|||
/* Return an absolutized path, resolving paths relative to the
|
||||
specified directory, or the current directory otherwise. The path
|
||||
is also canonicalised. */
|
||||
Path absPath(Path path, Path dir = "");
|
||||
Path absPath(Path path, std::optional<Path> dir = {});
|
||||
|
||||
/* Canonicalise a path by removing all `.' or `..' components and
|
||||
double or trailing slashes. Optionally resolves all symlink
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue