diff options
author | Max Kellermann <max@duempel.org> | 2015-02-28 23:45:16 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-02-28 23:45:16 +0100 |
commit | 0e00b9009d1cce5a25f4684dee83bee91ff4da34 (patch) | |
tree | 9ddaced857fdf2e33b1455f7fc9ab2222bf4c260 /src/fs/AllocatedPath.hxx | |
parent | a6dd998d313e60a1a350d206ca8275aaa83db20a (diff) | |
download | mpd-0e00b9009d1cce5a25f4684dee83bee91ff4da34.tar.gz mpd-0e00b9009d1cce5a25f4684dee83bee91ff4da34.tar.xz mpd-0e00b9009d1cce5a25f4684dee83bee91ff4da34.zip |
fs/Path: pass Path to Relative()
Diffstat (limited to 'src/fs/AllocatedPath.hxx')
-rw-r--r-- | src/fs/AllocatedPath.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index 58e12862d..e733c00a9 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -249,8 +249,8 @@ public: * nullptr on mismatch. */ gcc_pure - const char *Relative(const char *other_fs) const { - return PathTraitsFS::Relative(c_str(), other_fs); + const_pointer Relative(Path other_fs) const { + return PathTraitsFS::Relative(c_str(), other_fs.c_str()); } /** |