Daemon, Mapper: move-assign the Path objects

This commit is contained in:
Max Kellermann 2013-10-01 18:50:12 +02:00
parent a2ce2447a6
commit 0e0be0243b
2 changed files with 3 additions and 3 deletions

View File

@ -226,7 +226,7 @@ daemonize_init(const char *user, const char *group, Path &&_pidfile)
}
pidfile = _pidfile;
pidfile = std::move(_pidfile);
}
void

View File

@ -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);