aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/util.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-01-08 15:34:06 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-01-21 22:39:43 +0100
commit1bf9eb21b75f0d93d9c1633ea2e6fdf840047e79 (patch)
treeaf0300b5aae345d2c2b515c52cd2e51a9c17fc1a /src/libutil/util.hh
parent6fadb3fc03a1a3d51a1aaea003bfbe347c3879b3 (diff)
absPath(): Use std::optional
Diffstat (limited to 'src/libutil/util.hh')
-rw-r--r--src/libutil/util.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 5026db7cc..02c505cbc 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -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