summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-23 00:18:45 +0000
committerDavid Robillard <d@drobilla.net>2012-04-23 00:18:45 +0000
commit034c8948e8fe47b487e17a8dd438f3a9857d571a (patch)
tree3ea10e8f91f411976b3a31119a660d06508e2c5d /src/client
parent170b763db7c14be1014268198d6e02769352c5db (diff)
downloadingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.tar.gz
ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.tar.bz2
ingen-034c8948e8fe47b487e17a8dd438f3a9857d571a.zip
Use URI defines where possible.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4244 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client')
-rw-r--r--src/client/NodeModel.cpp2
-rw-r--r--src/client/PluginModel.cpp5
-rw-r--r--src/client/PluginUI.cpp2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/client/NodeModel.cpp b/src/client/NodeModel.cpp
index fc7873f0..d1d1108d 100644
--- a/src/client/NodeModel.cpp
+++ b/src/client/NodeModel.cpp
@@ -221,7 +221,7 @@ NodeModel::port_value_range(SharedPtr<const PortModel> port,
std::string
NodeModel::port_label(SharedPtr<const PortModel> port) const
{
- const Raul::Atom& name = port->get_property("http://lv2plug.in/ns/lv2core#name");
+ const Raul::Atom& name = port->get_property(LV2_CORE__name);
if (name.is_valid()) {
return name.get_string();
}
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index 35c6649a..4381d979 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -94,8 +94,7 @@ PluginModel::get_property(const URI& key) const
else
symbol = uri.str().substr(first_delim + 1, last_delim - first_delim - 1);
}
- set_property("http://lv2plug.in/ns/lv2core#symbol",
- _uris.forge.alloc(symbol));
+ set_property(LV2_CORE__symbol, _uris.forge.alloc(symbol));
return get_property(key);
}
@@ -152,7 +151,7 @@ PluginModel::set(SharedPtr<PluginModel> p)
Symbol
PluginModel::default_node_symbol() const
{
- const Atom& name_atom = get_property("http://lv2plug.in/ns/lv2core#symbol");
+ const Atom& name_atom = get_property(LV2_CORE__symbol);
if (name_atom.is_valid() && name_atom.type() == _uris.forge.String)
return Symbol::symbolify(name_atom.get_string());
else
diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp
index ac54b2f5..a58bdabe 100644
--- a/src/client/PluginUI.cpp
+++ b/src/client/PluginUI.cpp
@@ -100,7 +100,7 @@ PluginUI::create(Ingen::Shared::World* world,
PluginUI::ui_host = suil_host_new(lv2_ui_write, NULL, NULL, NULL);
}
- static const char* gtk_ui_uri = "http://lv2plug.in/ns/extensions/ui#GtkUI";
+ static const char* gtk_ui_uri = LV2_UI__GtkUI;
LilvNode* gtk_ui = lilv_new_uri(world->lilv_world(), gtk_ui_uri);