summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchCanvas.cpp
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/gui/PatchCanvas.cpp
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/gui/PatchCanvas.cpp')
-rw-r--r--src/gui/PatchCanvas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp
index 52702b30..8f76e281 100644
--- a/src/gui/PatchCanvas.cpp
+++ b/src/gui/PatchCanvas.cpp
@@ -249,8 +249,8 @@ PatchCanvas::build_plugin_menu()
SLV2PluginClasses classes = slv2_world_get_plugin_classes(PluginModel::slv2_world());
LV2Children children;
- for (unsigned i = 0; i < slv2_plugin_classes_size(classes); ++i) {
- SLV2PluginClass c = slv2_plugin_classes_get_at(classes, i);
+ SLV2_FOREACH(i, classes) {
+ SLV2PluginClass c = slv2_plugin_classes_get(classes, i);
SLV2Value p = slv2_plugin_class_get_parent_uri(c);
if (!p)
p = slv2_plugin_class_get_uri(lv2_plugin);