fs/AllocatedPath: use PathTraitsFS::Relative()

Eliminate duplicate code.
This commit is contained in:
Max Kellermann
2015-02-28 23:30:53 +01:00
parent cdd0ccc67a
commit a6dd998d31
2 changed files with 3 additions and 23 deletions

View File

@@ -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.