From 011106b517a9e46d9815beb6b33fb514fbee5568 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 8 Jun 2017 21:42:39 +0200 Subject: [PATCH] mixer/Internal: use C++11 initializers --- src/mixer/MixerInternal.hxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mixer/MixerInternal.hxx b/src/mixer/MixerInternal.hxx index 4e2e50657..1191bea0c 100644 --- a/src/mixer/MixerInternal.hxx +++ b/src/mixer/MixerInternal.hxx @@ -42,19 +42,17 @@ public: /** * Is the mixer device currently open? */ - bool open; + bool open = false; /** * Has this mixer failed, and should not be reopened * automatically? */ - bool failed; + bool failed = false; public: explicit Mixer(const MixerPlugin &_plugin, MixerListener &_listener) - :plugin(_plugin), listener(_listener), - open(false), - failed(false) {} + :plugin(_plugin), listener(_listener) {} Mixer(const Mixer &) = delete;