From 6407b7c5910f550e5f112a5552392f5d5f6d5fc7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 4 May 2016 15:18:57 +0200 Subject: [PATCH] output/recorder: use C++11 initializers --- src/output/plugins/RecorderOutputPlugin.cxx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/output/plugins/RecorderOutputPlugin.cxx b/src/output/plugins/RecorderOutputPlugin.cxx index 16376ae94..41b417bf0 100644 --- a/src/output/plugins/RecorderOutputPlugin.cxx +++ b/src/output/plugins/RecorderOutputPlugin.cxx @@ -47,12 +47,12 @@ class RecorderOutput { /** * The configured encoder plugin. */ - Encoder *encoder; + Encoder *encoder = nullptr; /** * The destination file name. */ - AllocatedPath path; + AllocatedPath path = AllocatedPath::Null(); /** * A string that will be used with FormatTag() to build the @@ -72,9 +72,7 @@ class RecorderOutput { FileOutputStream *file; RecorderOutput() - :base(recorder_output_plugin), - encoder(nullptr), - path(AllocatedPath::Null()) {} + :base(recorder_output_plugin) {} ~RecorderOutput() { if (encoder != nullptr)