summaryrefslogtreecommitdiff
path: root/src/Mapper.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-17 17:01:02 +0200
committerMax Kellermann <max@musicpd.org>2018-07-17 18:33:32 +0200
commit99d5b616981107f0cb32f9bcc9e29ff92855c78a (patch)
tree5fbc013510b82fc932d4045ede572774a04edd84 /src/Mapper.cxx
parent79e89eb23b554248e4b86631109ae551df6c8d48 (diff)
fs/Path: add operator/(Path,Path)
Modeled after std::filesystem::operator/() from C++17.
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 089469ea3..bb0387060 100644
--- a/src/Mapper.cxx
+++ b/src/Mapper.cxx
@@ -82,7 +82,7 @@ map_uri_fs(const char *uri) noexcept
if (uri_fs.IsNull())
return nullptr;
- return AllocatedPath::Build(music_dir_fs, uri_fs);
+ return music_dir_fs / uri_fs;
}
std::string
@@ -128,5 +128,5 @@ map_spl_utf8_to_fs(const char *name) noexcept
if (filename_fs.IsNull())
return nullptr;
- return AllocatedPath::Build(playlist_dir_fs, filename_fs);
+ return playlist_dir_fs / filename_fs;
}