summaryrefslogtreecommitdiffstats
path: root/src/client/PluginModel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
committerDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
commit198560d5fd499ab14eb4e130ee74e21fa86674a4 (patch)
treeeb7bd2ae2d19b6db2c28c79d1c7663fe5b1f49de /src/client/PluginModel.cpp
parent981c7950a6f5fc9f22decaee261556d20b641d5c (diff)
downloadingen-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/PluginModel.cpp')
-rw-r--r--src/client/PluginModel.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index 8a644edc..3f0bf735 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -149,7 +149,7 @@ PluginModel::set(SharedPtr<PluginModel> p)
}
Symbol
-PluginModel::default_node_symbol()
+PluginModel::default_node_symbol() const
{
const Atom& name_atom = get_property("http://lv2plug.in/ns/lv2core#symbol");
if (name_atom.is_valid() && name_atom.type() == Atom::STRING)
@@ -159,7 +159,7 @@ PluginModel::default_node_symbol()
}
string
-PluginModel::human_name()
+PluginModel::human_name() const
{
const Atom& name_atom = get_property("http://usefulinc.com/ns/doap#name");
if (name_atom.type() == Atom::STRING)
@@ -194,7 +194,8 @@ PluginModel::has_ui() const
}
SharedPtr<PluginUI>
-PluginModel::ui(Ingen::Shared::World* world, SharedPtr<NodeModel> node) const
+PluginModel::ui(Ingen::Shared::World* world,
+ SharedPtr<const NodeModel> node) const
{
if (_type != LV2)
return SharedPtr<PluginUI>();