db/simple: wrap LightSong in Manual<>

Prepare to make LightSong non-assignable.
This commit is contained in:
Max Kellermann
2018-07-06 16:46:01 +02:00
parent 86a02871fc
commit ebc006ab52
2 changed files with 12 additions and 9 deletions

View File

@@ -24,6 +24,7 @@
#include "db/Interface.hxx"
#include "fs/AllocatedPath.hxx"
#include "db/LightSong.hxx"
#include "util/Manual.hxx"
#include "Compiler.h"
#include <cassert>
@@ -61,7 +62,7 @@ class SimpleDatabase : public Database {
/**
* A buffer for GetSong().
*/
mutable LightSong light_song;
mutable Manual<LightSong> light_song;
#ifndef NDEBUG
mutable unsigned borrowed_song_count;