Mixer: use reference instead of pointer for MixerPlugin

This commit is contained in:
Max Kellermann
2014-02-05 17:25:47 +01:00
parent f86e159536
commit 855f26c43d
6 changed files with 21 additions and 29 deletions

View File

@@ -26,7 +26,7 @@
class Mixer {
public:
const MixerPlugin *plugin;
const MixerPlugin &plugin;
/**
* This mutex protects all of the mixer struct, including its
@@ -47,12 +47,12 @@ public:
public:
Mixer(const MixerPlugin &_plugin)
:plugin(&_plugin),
:plugin(_plugin),
open(false),
failed(false) {}
bool IsPlugin(const MixerPlugin &other) const {
return plugin == &other;
return &plugin == &other;
}
};