db/simple: wrap LightSong in Manual<>
Prepare to make LightSong non-assignable.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user