diff options
author | Max Kellermann <max@musicpd.org> | 2016-12-28 10:11:48 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-12-28 10:16:41 +0100 |
commit | 2d3c23876ce88c5bd58d5e1a87c710c4f0a92e2b (patch) | |
tree | 831c9da0214e78eca11a7a1ad447d11cb9077b5a | |
parent | bd8d8eef3ea1d63e4346ebaf3f7acc25a4fe7057 (diff) |
output/Timer: use C++11 initializers
-rw-r--r-- | src/output/Timer.cxx | 3 | ||||
-rw-r--r-- | src/output/Timer.hxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/output/Timer.cxx b/src/output/Timer.cxx index cf7532c9c..a7fe1fe34 100644 --- a/src/output/Timer.cxx +++ b/src/output/Timer.cxx @@ -27,8 +27,7 @@ #include <assert.h> Timer::Timer(const AudioFormat af) - :started(false), - rate(af.sample_rate * af.GetFrameSize()) + :rate(af.sample_rate * af.GetFrameSize()) { } diff --git a/src/output/Timer.hxx b/src/output/Timer.hxx index 39f2f2aa0..ce3d6c9c3 100644 --- a/src/output/Timer.hxx +++ b/src/output/Timer.hxx @@ -26,7 +26,7 @@ struct AudioFormat; class Timer { uint64_t time; - bool started; + bool started = false; const int rate; public: explicit Timer(AudioFormat af); |