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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user