diff options
author | Max Kellermann <max@duempel.org> | 2015-02-28 23:30:53 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-02-28 23:30:53 +0100 |
commit | a6dd998d313e60a1a350d206ca8275aaa83db20a (patch) | |
tree | 3430989525618c54c65888e44f84dc467bf6f204 /src/fs/AllocatedPath.hxx | |
parent | cdd0ccc67a63e8e4d108cb817f856a227a994242 (diff) | |
download | mpd-a6dd998d313e60a1a350d206ca8275aaa83db20a.tar.gz mpd-a6dd998d313e60a1a350d206ca8275aaa83db20a.tar.xz mpd-a6dd998d313e60a1a350d206ca8275aaa83db20a.zip |
fs/AllocatedPath: use PathTraitsFS::Relative()
Eliminate duplicate code.
Diffstat (limited to '')
-rw-r--r-- | src/fs/AllocatedPath.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index 4496981d7..58e12862d 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -249,7 +249,9 @@ public: * nullptr on mismatch. */ gcc_pure - const char *Relative(const char *other_fs) const; + const char *Relative(const char *other_fs) const { + return PathTraitsFS::Relative(c_str(), other_fs); + } /** * Chop trailing directory separators. |