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 /ingen/client/PluginUI.hpp | |
parent | 112eb3a668f65547b1757978b02cbafebf97b794 (diff) | |
download | ingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.tar.gz ingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.tar.bz2 ingen-acb958e95d0e8ca1b0dd912fe8bbf2e14e5f74e9.zip |
Pass World everywhere by reference
Diffstat (limited to 'ingen/client/PluginUI.hpp')
-rw-r--r-- | ingen/client/PluginUI.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ingen/client/PluginUI.hpp b/ingen/client/PluginUI.hpp index 6a6d6db9..f17c8f61 100644 --- a/ingen/client/PluginUI.hpp +++ b/ingen/client/PluginUI.hpp @@ -48,7 +48,7 @@ public: * connected first. The caller should connect to signal_property_changed, * then call instantiate(). */ - static SPtr<PluginUI> create(ingen::World* world, + static SPtr<PluginUI> create(ingen::World& world, SPtr<const BlockModel> block, const LilvPlugin* plugin); @@ -81,17 +81,17 @@ public: const Atom&, // Object Resource::Graph); // Context - ingen::World* world() const { return _world; } + ingen::World& world() const { return _world; } SPtr<const BlockModel> block() const { return _block; } private: - PluginUI(ingen::World* world, + PluginUI(ingen::World& world, SPtr<const BlockModel> block, LilvUIs* uis, const LilvUI* ui, const LilvNode* ui_type); - ingen::World* _world; + ingen::World& _world; SPtr<const BlockModel> _block; SuilInstance* _instance; LilvUIs* _uis; |