aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/fs/AllocatedPath.hxx3
-rw-r--r--src/fs/Traits.hxx1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx
index 502f30d17..3d557f92e 100644
--- a/src/fs/AllocatedPath.hxx
+++ b/src/fs/AllocatedPath.hxx
@@ -37,8 +37,7 @@ class Error;
* stored.
*/
class AllocatedPath {
- typedef std::string string;
-
+ typedef PathTraits::string string;
typedef PathTraits::value_type value_type;
typedef PathTraits::pointer pointer;
typedef PathTraits::const_pointer const_pointer;
diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx
index df412b12b..c72f9814a 100644
--- a/src/fs/Traits.hxx
+++ b/src/fs/Traits.hxx
@@ -36,6 +36,7 @@
* This class describes the nature of a filesystem path.
*/
struct PathTraits {
+ typedef std::string string;
typedef char value_type;
typedef char *pointer;
typedef const char *const_pointer;