summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-03-09 18:12:07 +0000
committerDavid Robillard <d@drobilla.net>2011-03-09 18:12:07 +0000
commit7703427f6832cb3195580fda0ab506e7c2948032 (patch)
tree14cc6c96302cd0902dcf9ed1120798c6d31acbb2 /src/client
parent2edb1283923b3c9b31d289342c74688975cb45fa (diff)
downloadingen-7703427f6832cb3195580fda0ab506e7c2948032.tar.gz
ingen-7703427f6832cb3195580fda0ab506e7c2948032.tar.bz2
ingen-7703427f6832cb3195580fda0ab506e7c2948032.zip
Update for new SLV2 API.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3058 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client')
-rw-r--r--src/client/PluginModel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp
index 3bc97369..8e826368 100644
--- a/src/client/PluginModel.cpp
+++ b/src/client/PluginModel.cpp
@@ -105,8 +105,8 @@ PluginModel::get_property(const URI& key) const
SLV2Value lv2_pred = slv2_value_new_uri(_slv2_world, key.str().c_str());
SLV2Values values = slv2_plugin_get_value(_slv2_plugin, lv2_pred);
slv2_value_free(lv2_pred);
- for (unsigned i = 0; i < slv2_values_size(values); ++i) {
- SLV2Value val = slv2_values_get_at(values, i);
+ SLV2_FOREACH(i, values) {
+ SLV2Value val = slv2_values_get(values, i);
if (slv2_value_is_uri(val)) {
ret = set_property(key, Atom(Atom::URI, slv2_value_as_uri(val)));
break;
@@ -232,7 +232,7 @@ PluginModel::get_lv2_icon_path(SLV2Plugin plugin)
SLV2Values paths = slv2_plugin_get_value(plugin, svg_icon_pred);
if (slv2_values_size(paths) > 0) {
- SLV2Value value = slv2_values_get_at(paths, 0);
+ SLV2Value value = slv2_values_get_first(paths);
if (slv2_value_is_uri(value))
result = slv2_uri_to_path(slv2_value_as_string(value));
slv2_values_free(paths);