From 3ada464020269ce961b770522c7cba2485c2d207 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 22 Feb 2019 14:52:01 +0100 Subject: [PATCH] db/simple: use C++11 initializer --- src/db/plugins/simple/SimpleDatabasePlugin.cxx | 3 +-- 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().