From d93271e86d4e4acbd608c6136173e9b022652bac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 1 Jul 2016 14:06:08 +0200 Subject: [PATCH] mixer/software: use C++11 initializers --- src/mixer/plugins/SoftwareMixerPlugin.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mixer/plugins/SoftwareMixerPlugin.cxx b/src/mixer/plugins/SoftwareMixerPlugin.cxx index 0006f5e16..d14aef899 100644 --- a/src/mixer/plugins/SoftwareMixerPlugin.cxx +++ b/src/mixer/plugins/SoftwareMixerPlugin.cxx @@ -47,19 +47,17 @@ class SoftwareMixer final : public Mixer { * software_mixer_get_filter(); after that, the caller will be * responsible for the #Filter. */ - bool owns_filter; + bool owns_filter = true; /** * The current volume in percent (0..100). */ - unsigned volume; + unsigned volume = 100; public: SoftwareMixer(MixerListener &_listener) :Mixer(software_mixer_plugin, _listener), - filter(CreateVolumeFilter()), - owns_filter(true), - volume(100) + filter(CreateVolumeFilter()) { assert(filter != nullptr); }