Mapper: add function map_song_detach()

Make the DetachedSong(Song) conversion constructor private.  Everybody
should use map_song_detach() which will take over more
responsibilities soon.
This commit is contained in:
Max Kellermann
2014-01-14 23:28:36 +01:00
parent 75b847132a
commit 61b01f82ef
7 changed files with 27 additions and 5 deletions

View File

@@ -217,6 +217,12 @@ map_detached_song_fs(const char *uri_utf8)
return AllocatedPath::Build(music_dir_fs, uri_fs);
}
DetachedSong
map_song_detach(const Song &song)
{
return DetachedSong(song);
}
AllocatedPath
map_song_fs(const Song &song)
{