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-03-24 14:25:28 +0100
commit4260a22a55d7afc931b22e8c41282fbd0ed18a77 (patch)
treec7fda769c2900e3259dbca031968bc9cb080335b /src/libutil/util.hh
parentf9611c7ae48abd4506a93691c25f067a0e8e73b4 (diff)
absPath(): Use std::optional
(cherry picked from commit 1bf9eb21b75f0d93d9c1633ea2e6fdf840047e79)
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 559ed4332..8c2cef9e1 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