summaryrefslogtreecommitdiffstats
path: root/src/server/LV2Plugin.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-08 09:06:55 +0100
committerDavid Robillard <d@drobilla.net>2019-03-08 09:06:55 +0100
commitacb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9 (patch)
treea229f986933c8ef9d9c15b36ecf58b04ebeaa7c0 /src/server/LV2Plugin.hpp
parent112eb3a668f65547b1757978b02cbafebf97b794 (diff)
downloadingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.tar.gz
ingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.tar.bz2
ingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.zip
Pass World everywhere by reference
Diffstat (limited to 'src/server/LV2Plugin.hpp')
-rw-r--r--src/server/LV2Plugin.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/LV2Plugin.hpp b/src/server/LV2Plugin.hpp
index 9d342f54..da4ce23c 100644
--- a/src/server/LV2Plugin.hpp
+++ b/src/server/LV2Plugin.hpp
@@ -38,7 +38,7 @@ class BlockImpl;
class LV2Plugin : public PluginImpl
{
public:
- LV2Plugin(World* world, const LilvPlugin* lplugin);
+ LV2Plugin(World& world, const LilvPlugin* lplugin);
BlockImpl* instantiate(BufferFactory& bufs,
const Raul::Symbol& symbol,
@@ -49,7 +49,7 @@ public:
const Raul::Symbol symbol() const override;
- World* world() const { return _world; }
+ World& world() const { return _world; }
const LilvPlugin* lilv_plugin() const { return _lilv_plugin; }
void update_properties() override;
@@ -62,7 +62,7 @@ public:
}
private:
- World* _world;
+ World& _world;
const LilvPlugin* _lilv_plugin;
};