diff options
author | Max Kellermann <max@duempel.org> | 2014-10-10 19:08:52 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-10-10 19:51:44 +0200 |
commit | f618065f7c797aae190912295bbe5ff73760dbe1 (patch) | |
tree | b2c0bd9ac9defad48cdcf2e26754b671228eab5f /src/fs | |
parent | f0be48ff90503d9ffa5b295fd4454eec753950ee (diff) | |
download | mpd-f618065f7c797aae190912295bbe5ff73760dbe1.tar.gz mpd-f618065f7c797aae190912295bbe5ff73760dbe1.tar.xz mpd-f618065f7c797aae190912295bbe5ff73760dbe1.zip |
fs/Traits: use value_type
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/Traits.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx index 88715c3e8..77317e1ee 100644 --- a/src/fs/Traits.hxx +++ b/src/fs/Traits.hxx @@ -38,8 +38,8 @@ struct PathTraitsFS { typedef std::string string; typedef char value_type; - typedef char *pointer; - typedef const char *const_pointer; + typedef value_type *pointer; + typedef const value_type *const_pointer; #ifdef WIN32 static constexpr value_type SEPARATOR = '\\'; @@ -136,8 +136,8 @@ struct PathTraitsFS { struct PathTraitsUTF8 { typedef std::string string; typedef char value_type; - typedef char *pointer; - typedef const char *const_pointer; + typedef value_type *pointer; + typedef const value_type *const_pointer; static constexpr value_type SEPARATOR = '/'; |