diff options
author | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 03:53:43 +0600 |
---|---|---|
committer | Denis Krjuchkov <denis@crazydev.net> | 2013-12-05 03:53:43 +0600 |
commit | 0a6c4c31b2a9e79c9c0119202f9e50e123f98ac6 (patch) | |
tree | eeea8005badbf5b9c8ccea8b961ea498d2da3d47 /src/fs/AllocatedPath.cxx | |
parent | 02fcf184b5620c9ccbbc26024f9b0f341061a39a (diff) | |
download | mpd-0a6c4c31b2a9e79c9c0119202f9e50e123f98ac6.tar.gz mpd-0a6c4c31b2a9e79c9c0119202f9e50e123f98ac6.tar.xz mpd-0a6c4c31b2a9e79c9c0119202f9e50e123f98ac6.zip |
fs/Traits: split PathTraits type into PathTraitsFS and PathTraitsUTF8
Diffstat (limited to 'src/fs/AllocatedPath.cxx')
-rw-r--r-- | src/fs/AllocatedPath.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/AllocatedPath.cxx b/src/fs/AllocatedPath.cxx index 5da748ea8..9dc7a644c 100644 --- a/src/fs/AllocatedPath.cxx +++ b/src/fs/AllocatedPath.cxx @@ -75,14 +75,14 @@ AllocatedPath::RelativeFS(const char *other_fs) const other_fs += l; if (*other_fs != 0) { - if (!PathTraits::IsSeparatorFS(*other_fs)) + if (!PathTraitsFS::IsSeparator(*other_fs)) /* mismatch */ return nullptr; /* skip remaining path separators */ do { ++other_fs; - } while (PathTraits::IsSeparatorFS(*other_fs)); + } while (PathTraitsFS::IsSeparator(*other_fs)); } return other_fs; @@ -94,7 +94,7 @@ AllocatedPath::ChopSeparators() size_t l = length(); const char *p = data(); - while (l >= 2 && PathTraits::IsSeparatorFS(p[l - 1])) { + while (l >= 2 && PathTraitsFS::IsSeparator(p[l - 1])) { --l; #if GCC_CHECK_VERSION(4,7) && !defined(__clang__) |