summaryrefslogtreecommitdiff
path: root/src/filter
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2016-06-22 12:43:47 +0200
committerMax Kellermann <max@duempel.org>2016-06-22 12:43:47 +0200
commit85ef034fd0e0976690fa781038cc85bda2f3d52c (patch)
treea5d4c0d0a2b41c6486ccaf97166a482598667c65 /src/filter
parent59141f62bb2263b95772e5bc22151bd91a2e148a (diff)
filter/ReplayGain: use C++11 initializers
Diffstat (limited to 'src/filter')
-rw-r--r--src/filter/plugins/ReplayGainFilterPlugin.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/filter/plugins/ReplayGainFilterPlugin.cxx b/src/filter/plugins/ReplayGainFilterPlugin.cxx
index c73669b11..b9527531e 100644
--- a/src/filter/plugins/ReplayGainFilterPlugin.cxx
+++ b/src/filter/plugins/ReplayGainFilterPlugin.cxx
@@ -41,7 +41,7 @@ class ReplayGainFilter final : public Filter {
* If set, then this hardware mixer is used for applying
* replay gain, instead of the software volume library.
*/
- Mixer *mixer;
+ Mixer *mixer = nullptr;
/**
* The base volume level for scale=1.0, between 1 and 100
@@ -49,7 +49,7 @@ class ReplayGainFilter final : public Filter {
*/
unsigned base;
- ReplayGainMode mode;
+ ReplayGainMode mode = REPLAY_GAIN_OFF;
ReplayGainInfo info;
@@ -68,8 +68,7 @@ class ReplayGainFilter final : public Filter {
PcmVolume pv;
public:
- ReplayGainFilter()
- :mixer(nullptr), mode(REPLAY_GAIN_OFF) {
+ ReplayGainFilter() {
info.Clear();
}