fs/{Allocated,}Path,Charset: use PathTraitsFS typedefs

This commit is contained in:
Max Kellermann
2015-02-25 16:10:24 +01:00
parent 4c899e9c5a
commit eb174d5ba3
6 changed files with 19 additions and 21 deletions

View File

@@ -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);
}