summaryrefslogtreecommitdiff
path: root/src/Mapper.cxx
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-12-05 03:53:43 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-12-05 03:53:43 +0600
commit0a6c4c31b2a9e79c9c0119202f9e50e123f98ac6 (patch)
treeeeea8005badbf5b9c8ccea8b961ea498d2da3d47 /src/Mapper.cxx
parent02fcf184b5620c9ccbbc26024f9b0f341061a39a (diff)
fs/Traits: split PathTraits type into PathTraitsFS and PathTraitsUTF8
Diffstat (limited to 'src/Mapper.cxx')
-rw-r--r--src/Mapper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx
index 2483f2fcf..fbe1e8c34 100644
--- a/src/Mapper.cxx
+++ b/src/Mapper.cxx
@@ -148,7 +148,7 @@ map_to_relative_path(const char *path_utf8)
return !music_dir_utf8.empty() &&
memcmp(path_utf8, music_dir_utf8.c_str(),
music_dir_utf8_length) == 0 &&
- PathTraits::IsSeparatorUTF8(path_utf8[music_dir_utf8_length])
+ PathTraitsUTF8::IsSeparator(path_utf8[music_dir_utf8_length])
? path_utf8 + music_dir_utf8_length + 1
: path_utf8;
}
@@ -232,7 +232,7 @@ map_song_fs(const Song &song)
std::string
map_fs_to_utf8(const char *path_fs)
{
- if (PathTraits::IsSeparatorFS(path_fs[0])) {
+ if (PathTraitsFS::IsSeparator(path_fs[0])) {
path_fs = music_dir_fs.RelativeFS(path_fs);
if (path_fs == nullptr || *path_fs == 0)
return std::string();