From 61b01f82ef0582d194d8adfa137a09f71ce728c1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Jan 2014 23:28:36 +0100 Subject: 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. --- src/Mapper.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/Mapper.cxx') diff --git a/src/Mapper.cxx b/src/Mapper.cxx index c6d8a3ea5..d41fba957 100644 --- a/src/Mapper.cxx +++ b/src/Mapper.cxx @@ -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) { -- cgit v1.2.3