db/simple: use C++11 initializer
This commit is contained in:
parent
d5983dd362
commit
3ada464020
|
@ -60,8 +60,7 @@ inline SimpleDatabase::SimpleDatabase(const ConfigBlock &block)
|
||||||
#ifdef ENABLE_ZLIB
|
#ifdef ENABLE_ZLIB
|
||||||
compress(block.GetBlockValue("compress", true)),
|
compress(block.GetBlockValue("compress", true)),
|
||||||
#endif
|
#endif
|
||||||
cache_path(block.GetPath("cache_directory")),
|
cache_path(block.GetPath("cache_directory"))
|
||||||
prefixed_light_song(nullptr)
|
|
||||||
{
|
{
|
||||||
if (path.IsNull())
|
if (path.IsNull())
|
||||||
throw std::runtime_error("No \"path\" parameter specified");
|
throw std::runtime_error("No \"path\" parameter specified");
|
||||||
|
|
|
@ -58,7 +58,7 @@ class SimpleDatabase : public Database {
|
||||||
* A buffer for GetSong() when prefixing the #LightSong
|
* A buffer for GetSong() when prefixing the #LightSong
|
||||||
* instance from a mounted #Database.
|
* instance from a mounted #Database.
|
||||||
*/
|
*/
|
||||||
mutable PrefixedLightSong *prefixed_light_song;
|
mutable PrefixedLightSong *prefixed_light_song = nullptr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A buffer for GetSong().
|
* A buffer for GetSong().
|
||||||
|
|
Loading…
Reference in New Issue