diff options
author | Max Kellermann <max@duempel.org> | 2014-02-07 18:58:37 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-02-07 19:08:51 +0100 |
commit | d744c997d8a4370d56901c5bdf92d3cca0ef83bc (patch) | |
tree | 808a88c401091b9c8444745e900152599badbd14 /src/fs/Path.hxx | |
parent | 6b421cc354cb0c297fcf99d7824b99b61caec99d (diff) | |
download | mpd-d744c997d8a4370d56901c5bdf92d3cca0ef83bc.tar.gz mpd-d744c997d8a4370d56901c5bdf92d3cca0ef83bc.tar.xz mpd-d744c997d8a4370d56901c5bdf92d3cca0ef83bc.zip |
fs/Traits: add function Relative()
Move code from Path::RelativeFS() and make it generic.
Diffstat (limited to 'src/fs/Path.hxx')
-rw-r--r-- | src/fs/Path.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index 3c9dc806f..9e0fa5aeb 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -135,7 +135,9 @@ public: * nullptr on mismatch. */ gcc_pure - const char *RelativeFS(const char *other_fs) const; + const char *RelativeFS(const char *other_fs) const { + return PathTraitsFS::Relative(value, other_fs); + } gcc_pure bool IsAbsolute() { |