diff options
author | David Robillard <d@drobilla.net> | 2019-03-08 09:06:55 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-08 09:06:55 +0100 |
commit | acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9 (patch) | |
tree | a229f986933c8ef9d9c15b36ecf58b04ebeaa7c0 /src/server/LV2Plugin.hpp | |
parent | 112eb3a668f65547b1757978b02cbafebf97b794 (diff) | |
download | ingen-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.hpp | 6 |
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; }; |