Commit 3ada4640 authored by Max Kellermann's avatar Max Kellermann

db/simple: use C++11 initializer

parent d5983dd3
...@@ -60,8 +60,7 @@ inline SimpleDatabase::SimpleDatabase(const ConfigBlock &block) ...@@ -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 { ...@@ -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().
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment