aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Path.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-07 18:58:37 +0100
committerMax Kellermann <max@duempel.org>2014-02-07 19:08:51 +0100
commitd744c997d8a4370d56901c5bdf92d3cca0ef83bc (patch)
tree808a88c401091b9c8444745e900152599badbd14 /src/fs/Path.hxx
parent6b421cc354cb0c297fcf99d7824b99b61caec99d (diff)
downloadmpd-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.hxx4
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() {