db/simple/Song: wrap in std::unique_ptr<>

This commit is contained in:
Max Kellermann
2019-05-21 22:46:34 +02:00
parent 02bb47dd08
commit bbdf2dcf1e
10 changed files with 65 additions and 41 deletions

View File

@@ -20,6 +20,7 @@
#ifndef MPD_DIRECTORY_HXX
#define MPD_DIRECTORY_HXX
#include "Ptr.hxx"
#include "util/Compiler.h"
#include "db/Visitor.hxx"
#include "db/PlaylistVector.hxx"
@@ -242,7 +243,7 @@ public:
* Add a song object to this directory. Its "parent" attribute must
* be set already.
*/
void AddSong(Song *song) noexcept;
void AddSong(SongPtr song) noexcept;
/**
* Remove a song object from this directory (which effectively