db/simple/Song: move struct Disposer to separate header

Allow forward-declaring it.
This commit is contained in:
Max Kellermann
2019-05-21 22:41:16 +02:00
parent 0c48b8d084
commit 02bb47dd08
4 changed files with 38 additions and 7 deletions

View File

@@ -20,6 +20,7 @@
#include "Directory.hxx"
#include "SongSort.hxx"
#include "Song.hxx"
#include "Disposer.hxx"
#include "Mount.hxx"
#include "db/LightDirectory.hxx"
#include "song/LightSong.hxx"
@@ -50,7 +51,7 @@ Directory::~Directory() noexcept
mounted_database.reset();
}
songs.clear_and_dispose(Song::Disposer());
songs.clear_and_dispose(SongDisposer());
children.clear_and_dispose(DeleteDisposer());
}