mixer/Internal: use C++11 initializers
This commit is contained in:
parent
7467b85019
commit
011106b517
@ -42,19 +42,17 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Is the mixer device currently open?
|
* Is the mixer device currently open?
|
||||||
*/
|
*/
|
||||||
bool open;
|
bool open = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Has this mixer failed, and should not be reopened
|
* Has this mixer failed, and should not be reopened
|
||||||
* automatically?
|
* automatically?
|
||||||
*/
|
*/
|
||||||
bool failed;
|
bool failed = false;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit Mixer(const MixerPlugin &_plugin, MixerListener &_listener)
|
explicit Mixer(const MixerPlugin &_plugin, MixerListener &_listener)
|
||||||
:plugin(_plugin), listener(_listener),
|
:plugin(_plugin), listener(_listener) {}
|
||||||
open(false),
|
|
||||||
failed(false) {}
|
|
||||||
|
|
||||||
Mixer(const Mixer &) = delete;
|
Mixer(const Mixer &) = delete;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user