From eb174d5ba317743ca21295697df90a7ed66a64bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 25 Feb 2015 16:10:24 +0100 Subject: fs/{Allocated,}Path,Charset: use PathTraitsFS typedefs --- src/fs/Path.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fs/Path.hxx') 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); } -- cgit v1.2.3