From 6532c7e089fdddbfe7182d4becb4923272f2b863 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Nov 2016 11:01:07 +0100 Subject: [PATCH] output/pulse: use C++11 initializers --- src/output/plugins/PulseOutputPlugin.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/output/plugins/PulseOutputPlugin.cxx b/src/output/plugins/PulseOutputPlugin.cxx index d8b0003e8..20564cba1 100644 --- a/src/output/plugins/PulseOutputPlugin.cxx +++ b/src/output/plugins/PulseOutputPlugin.cxx @@ -54,18 +54,16 @@ class PulseOutput { const char *server; const char *sink; - PulseMixer *mixer; + PulseMixer *mixer = nullptr; - struct pa_threaded_mainloop *mainloop; + struct pa_threaded_mainloop *mainloop = nullptr; struct pa_context *context; - struct pa_stream *stream; + struct pa_stream *stream = nullptr; size_t writable; PulseOutput() - :base(pulse_output_plugin), - mixer(nullptr), - mainloop(nullptr), stream(nullptr) {} + :base(pulse_output_plugin) {} public: void SetMixer(PulseMixer &_mixer);