mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
absPath
: just take a std::string_view
1. Slightly more efficient 2. Easier to call Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
This commit is contained in:
parent
268c49264a
commit
beed00c04e
3 changed files with 15 additions and 7 deletions
|
@ -41,7 +41,7 @@ struct Source;
|
|||
* specified directory, or the current directory otherwise. The path
|
||||
* is also canonicalised.
|
||||
*/
|
||||
Path absPath(Path path,
|
||||
Path absPath(PathView path,
|
||||
std::optional<PathView> dir = {},
|
||||
bool resolveSymlinks = false);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue