aboutsummaryrefslogtreecommitdiffstats
path: root/src/Mapper.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-01 18:50:12 +0200
committerMax Kellermann <max@duempel.org>2013-10-01 18:50:18 +0200
commit0e0be0243bdf2fe8cbd88bd530ec7b7040b4d9da (patch)
tree9de2b3dd6ea86cc3e114a7037c50eccb7e5411d3 /src/Mapper.cxx
parenta2ce2447a68ca25ad72aed7aaf4ea85183c5de88 (diff)
downloadmpd-0e0be0243bdf2fe8cbd88bd530ec7b7040b4d9da.tar.gz
mpd-0e0be0243bdf2fe8cbd88bd530ec7b7040b4d9da.tar.xz
mpd-0e0be0243bdf2fe8cbd88bd530ec7b7040b4d9da.zip
Daemon, Mapper: move-assign the Path objects
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 c07cb12d0..135621e17 100644
--- a/src/Mapper.cxx
+++ b/src/Mapper.cxx
@@ -109,7 +109,7 @@ mapper_set_music_dir(Path &&path)
{
assert(!path.IsNull());
- music_dir_fs = path;
+ music_dir_fs = std::move(path);
music_dir_fs_length = music_dir_fs.length();
const auto utf8 = music_dir_fs.ToUTF8();
@@ -124,7 +124,7 @@ mapper_set_playlist_dir(Path &&path)
{
assert(!path.IsNull());
- playlist_dir_fs = path;
+ playlist_dir_fs = std::move(path);
const auto utf8 = playlist_dir_fs.ToUTF8();
check_directory(utf8.c_str(), playlist_dir_fs);