From 0e00b9009d1cce5a25f4684dee83bee91ff4da34 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 28 Feb 2015 23:45:16 +0100 Subject: fs/Path: pass Path to Relative() --- src/fs/AllocatedPath.hxx | 4 ++-- src/fs/Path.hxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/fs') 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()); } /** diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index ef663bf0b..56459723d 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -153,8 +153,8 @@ public: * nullptr on mismatch. */ gcc_pure - const_pointer Relative(const_pointer other_fs) const { - return PathTraitsFS::Relative(value, other_fs); + const_pointer Relative(Path other_fs) const { + return PathTraitsFS::Relative(c_str(), other_fs.c_str()); } gcc_pure -- cgit v1.2.3