aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer/MixerInternal.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-05 17:25:47 +0100
committerMax Kellermann <max@duempel.org>2014-02-05 17:25:47 +0100
commit855f26c43d0a9346e6670f09325f1e2b4d354757 (patch)
tree7543bbc8b3ab1991b8cb28995c075558f239ff50 /src/mixer/MixerInternal.hxx
parentf86e15953621901c468bfc2a1140c854a91b5a16 (diff)
downloadmpd-855f26c43d0a9346e6670f09325f1e2b4d354757.tar.gz
mpd-855f26c43d0a9346e6670f09325f1e2b4d354757.tar.xz
mpd-855f26c43d0a9346e6670f09325f1e2b4d354757.zip
Mixer: use reference instead of pointer for MixerPlugin
Diffstat (limited to 'src/mixer/MixerInternal.hxx')
-rw-r--r--src/mixer/MixerInternal.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mixer/MixerInternal.hxx b/src/mixer/MixerInternal.hxx
index 108293740..1524af7f2 100644
--- a/src/mixer/MixerInternal.hxx
+++ b/src/mixer/MixerInternal.hxx
@@ -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;
}
};