Commit 6407b7c5 authored by Max Kellermann's avatar Max Kellermann

output/recorder: use C++11 initializers

parent e14cd92d
...@@ -47,12 +47,12 @@ class RecorderOutput { ...@@ -47,12 +47,12 @@ class RecorderOutput {
/** /**
* The configured encoder plugin. * The configured encoder plugin.
*/ */
Encoder *encoder; Encoder *encoder = nullptr;
/** /**
* The destination file name. * The destination file name.
*/ */
AllocatedPath path; AllocatedPath path = AllocatedPath::Null();
/** /**
* A string that will be used with FormatTag() to build the * A string that will be used with FormatTag() to build the
...@@ -72,9 +72,7 @@ class RecorderOutput { ...@@ -72,9 +72,7 @@ class RecorderOutput {
FileOutputStream *file; FileOutputStream *file;
RecorderOutput() RecorderOutput()
:base(recorder_output_plugin), :base(recorder_output_plugin) {}
encoder(nullptr),
path(AllocatedPath::Null()) {}
~RecorderOutput() { ~RecorderOutput() {
if (encoder != nullptr) if (encoder != nullptr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment