diff options
author | Max Kellermann <max@duempel.org> | 2015-02-25 16:10:24 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-02-25 19:17:45 +0100 |
commit | eb174d5ba317743ca21295697df90a7ed66a64bb (patch) | |
tree | 1d63d91b3517353fac94b5706d37606d93616696 /src/fs/Path.hxx | |
parent | 4c899e9c5aec4d7fea56da95eed8784a41ea4b5b (diff) | |
download | mpd-eb174d5ba317743ca21295697df90a7ed66a64bb.tar.gz mpd-eb174d5ba317743ca21295697df90a7ed66a64bb.tar.xz mpd-eb174d5ba317743ca21295697df90a7ed66a64bb.zip |
fs/{Allocated,}Path,Charset: use PathTraitsFS typedefs
Diffstat (limited to '')
-rw-r--r-- | src/fs/Path.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/Path.hxx b/src/fs/Path.hxx index f9cc9839b..586224eaf 100644 --- a/src/fs/Path.hxx +++ b/src/fs/Path.hxx @@ -42,7 +42,7 @@ class Path { typedef PathTraitsFS::pointer pointer; typedef PathTraitsFS::const_pointer const_pointer; - const char *value; + const_pointer value; constexpr Path(const_pointer _value):value(_value) {} @@ -100,7 +100,7 @@ public: size_t length() const { assert(value != nullptr); - return strlen(value); + return PathTraitsFS::GetLength(value); } /** @@ -153,7 +153,7 @@ public: * nullptr on mismatch. */ gcc_pure - const char *RelativeFS(const char *other_fs) const { + const_pointer RelativeFS(const_pointer other_fs) const { return PathTraitsFS::Relative(value, other_fs); } |