aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/Traits.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/fs/Traits.hxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx
index b92330f60..08d798f05 100644
--- a/src/fs/Traits.hxx
+++ b/src/fs/Traits.hxx
@@ -22,6 +22,7 @@
#include "check.h"
#include "Compiler.h"
+#include "util/StringPointer.hxx"
#include "util/StringAPI.hxx"
#ifdef WIN32
@@ -50,8 +51,9 @@ struct PathTraitsFS {
#endif
typedef string::traits_type char_traits;
typedef char_traits::char_type value_type;
- typedef value_type *pointer;
- typedef const value_type *const_pointer;
+ typedef StringPointer<value_type> Pointer;
+ typedef Pointer::pointer pointer;
+ typedef Pointer::const_pointer const_pointer;
#ifdef WIN32
static constexpr value_type SEPARATOR = '\\';