aboutsummaryrefslogtreecommitdiffstats
path: root/src/PlaylistSong.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-20 23:48:46 +0100
committerMax Kellermann <max@duempel.org>2014-01-21 00:28:37 +0100
commit4f120f371474dbdc3e7ec4182d257dc9492d827b (patch)
tree48e5de91898765b801b980ed30135f0bf678c24c /src/PlaylistSong.hxx
parentdd20a3ce7e5d6bb3efd41a2c9ab5ba27e8e15248 (diff)
downloadmpd-4f120f371474dbdc3e7ec4182d257dc9492d827b.tar.gz
mpd-4f120f371474dbdc3e7ec4182d257dc9492d827b.tar.xz
mpd-4f120f371474dbdc3e7ec4182d257dc9492d827b.zip
PlaylistSong: modify the given song object in-place
Reduce bloat.
Diffstat (limited to 'src/PlaylistSong.hxx')
-rw-r--r--src/PlaylistSong.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/PlaylistSong.hxx b/src/PlaylistSong.hxx
index 826b4d92d..2a47b28db 100644
--- a/src/PlaylistSong.hxx
+++ b/src/PlaylistSong.hxx
@@ -23,15 +23,15 @@
class DetachedSong;
/**
- * Verifies the song, returns nullptr if it is unsafe. Translate the
- * song to a new song object within the database, if it is a local
- * file. The old song object is freed.
+ * Verifies the song, returns false if it is unsafe. Translate the
+ * song to a song within the database, if it is a local file.
*
* @param secure if true, then local files are only allowed if they
* are relative to base_uri
+ * @return true on success, false if the song should not be used
*/
-DetachedSong *
-playlist_check_translate_song(DetachedSong *song, const char *base_uri,
+bool
+playlist_check_translate_song(DetachedSong &song, const char *base_uri,
bool secure);
#endif