diff options
author | Max Kellermann <max@musicpd.org> | 2019-02-22 14:52:01 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-02-22 14:52:01 +0100 |
commit | 3ada464020269ce961b770522c7cba2485c2d207 (patch) | |
tree | c8a9e3d5a2d43eadbd7c042cb4c7d7abf6f18263 /src | |
parent | d5983dd3621adc737e7182b45ad05381f8a48699 (diff) |
db/simple: use C++11 initializer
Diffstat (limited to 'src')
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.cxx | 3 | ||||
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.hxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx index 877126726..570925035 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx @@ -60,8 +60,7 @@ inline SimpleDatabase::SimpleDatabase(const ConfigBlock &block) #ifdef ENABLE_ZLIB compress(block.GetBlockValue("compress", true)), #endif - cache_path(block.GetPath("cache_directory")), - prefixed_light_song(nullptr) + cache_path(block.GetPath("cache_directory")) { if (path.IsNull()) throw std::runtime_error("No \"path\" parameter specified"); diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.hxx b/src/db/plugins/simple/SimpleDatabasePlugin.hxx index 53b07cb55..d3dac514f 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.hxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.hxx @@ -58,7 +58,7 @@ class SimpleDatabase : public Database { * A buffer for GetSong() when prefixing the #LightSong * instance from a mounted #Database. */ - mutable PrefixedLightSong *prefixed_light_song; + mutable PrefixedLightSong *prefixed_light_song = nullptr; /** * A buffer for GetSong(). |