db/simple/Directory: RemoveSong() returns SongPtr

This commit is contained in:
Max Kellermann
2019-09-05 21:12:10 +02:00
parent 07f212c98c
commit ee36a48dbb
3 changed files with 7 additions and 6 deletions

View File

@@ -257,9 +257,9 @@ public:
/**
* Remove a song object from this directory (which effectively
* invalidates the song object, because the "parent" attribute becomes
* stale), but does not free it.
* stale), and return ownership to the caller.
*/
void RemoveSong(Song *song) noexcept;
SongPtr RemoveSong(Song *song) noexcept;
/**
* Caller must lock the #db_mutex.