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/DatabasePlaylist.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/DatabasePlaylist.cxx') diff --git a/src/DatabasePlaylist.cxx b/src/DatabasePlaylist.cxx index b557cbf29..5f7c85a78 100644 --- a/src/DatabasePlaylist.cxx +++ b/src/DatabasePlaylist.cxx @@ -24,6 +24,7 @@ #include "DatabaseGlue.hxx" #include "DatabasePlugin.hxx" #include "DetachedSong.hxx" +#include "Mapper.hxx" #include @@ -31,7 +32,8 @@ static bool AddSong(const char *playlist_path_utf8, Song &song, Error &error) { - return spl_append_song(playlist_path_utf8, DetachedSong(song), error); + return spl_append_song(playlist_path_utf8, map_song_detach(song), + error); } bool -- cgit v1.2.3