From 855f26c43d0a9346e6670f09325f1e2b4d354757 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 5 Feb 2014 17:25:47 +0100 Subject: Mixer: use reference instead of pointer for MixerPlugin --- src/mixer/MixerInternal.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mixer/MixerInternal.hxx') 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; } }; -- cgit v1.2.3