diff options
author | David Robillard <d@drobilla.net> | 2011-05-13 02:57:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-13 02:57:36 +0000 |
commit | 198560d5fd499ab14eb4e130ee74e21fa86674a4 (patch) | |
tree | eb7bd2ae2d19b6db2c28c79d1c7663fe5b1f49de /src/client/PluginUI.hpp | |
parent | 981c7950a6f5fc9f22decaee261556d20b641d5c (diff) | |
download | ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.gz ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.bz2 ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.zip |
Make models const in client code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3259 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PluginUI.hpp')
-rw-r--r-- | src/client/PluginUI.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/client/PluginUI.hpp b/src/client/PluginUI.hpp index cedc4fe2..9f5b0e52 100644 --- a/src/client/PluginUI.hpp +++ b/src/client/PluginUI.hpp @@ -44,9 +44,9 @@ class PluginUI { public: ~PluginUI(); - static SharedPtr<PluginUI> create(Ingen::Shared::World* world, - SharedPtr<NodeModel> node, - const LilvPlugin* plugin); + static SharedPtr<PluginUI> create(Ingen::Shared::World* world, + SharedPtr<const NodeModel> node, + const LilvPlugin* plugin); SuilWidget get_widget(); @@ -55,16 +55,16 @@ public: uint32_t format, const void* buffer); - Ingen::Shared::World* world() const { return _world; } - SharedPtr<NodeModel> node() const { return _node; } + Ingen::Shared::World* world() const { return _world; } + SharedPtr<const NodeModel> node() const { return _node; } private: - PluginUI(Ingen::Shared::World* world, - SharedPtr<NodeModel> node); + PluginUI(Ingen::Shared::World* world, + SharedPtr<const NodeModel> node); - Ingen::Shared::World* _world; - SharedPtr<NodeModel> _node; - SuilInstance* _instance; + Ingen::Shared::World* _world; + SharedPtr<const NodeModel> _node; + SuilInstance* _instance; static SuilHost* ui_host; |