From f618065f7c797aae190912295bbe5ff73760dbe1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Oct 2014 19:08:52 +0200 Subject: [PATCH] fs/Traits: use value_type --- src/fs/Traits.hxx | 8 ++++---- 1 file 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 = '/';