summaryrefslogtreecommitdiff
path: root/src/mixer
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-02-01 13:59:55 +0100
committerMax Kellermann <max@musicpd.org>2020-02-01 14:02:43 +0100
commitbc6eca2115d8d333eed61d23a01958926bbd7a9c (patch)
treef817a3c9779566c18157d01595db293dd63a70e1 /src/mixer
parent72ec641f0d5a33de882a05a53e2f3a3b74226eb3 (diff)
*: add `explicit`
Diffstat (limited to 'src/mixer')
-rw-r--r--src/mixer/plugins/NullMixerPlugin.cxx2
-rw-r--r--src/mixer/plugins/SoftwareMixerPlugin.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mixer/plugins/NullMixerPlugin.cxx b/src/mixer/plugins/NullMixerPlugin.cxx
index 5a5f5f352..4f8989d50 100644
--- a/src/mixer/plugins/NullMixerPlugin.cxx
+++ b/src/mixer/plugins/NullMixerPlugin.cxx
@@ -26,7 +26,7 @@ class NullMixer final : public Mixer {
unsigned volume;
public:
- NullMixer(MixerListener &_listener)
+ explicit NullMixer(MixerListener &_listener)
:Mixer(null_mixer_plugin, _listener),
volume(100)
{
diff --git a/src/mixer/plugins/SoftwareMixerPlugin.cxx b/src/mixer/plugins/SoftwareMixerPlugin.cxx
index a78ddd6f9..c394a9628 100644
--- a/src/mixer/plugins/SoftwareMixerPlugin.cxx
+++ b/src/mixer/plugins/SoftwareMixerPlugin.cxx
@@ -34,7 +34,7 @@ class SoftwareMixer final : public Mixer {
unsigned volume = 100;
public:
- SoftwareMixer(MixerListener &_listener)
+ explicit SoftwareMixer(MixerListener &_listener)
:Mixer(software_mixer_plugin, _listener)
{
}