diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/NodeMenu.cpp | 4 | ||||
-rw-r--r-- | src/gui/PatchCanvas.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp index 3a683027..e89f0d41 100644 --- a/src/gui/NodeMenu.cpp +++ b/src/gui/NodeMenu.cpp @@ -97,7 +97,7 @@ NodeMenu::init(SharedPtr<NodeModel> node) if (presets) { _presets_menu = Gtk::manage(new Gtk::Menu()); - SLV2_FOREACH(i, presets) { + SLV2_FOREACH(values, i, presets) { SLV2Value uri = slv2_values_get(presets, i); SLV2Values titles = slv2_plugin_get_value_for_subject( plugin->slv2_plugin(), uri, title_pred); @@ -197,7 +197,7 @@ NodeMenu::on_preset_activated(const std::string& uri) subject, port_pred); App::instance().engine()->bundle_begin(); - SLV2_FOREACH(i, ports) { + SLV2_FOREACH(values, i, ports) { SLV2Value uri = slv2_values_get(ports, i); SLV2Values values = slv2_plugin_get_value_for_subject( plugin->slv2_plugin(), uri, value_pred); diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 334b7035..9ff0ba31 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -263,7 +263,7 @@ PatchCanvas::build_plugin_menu() SLV2PluginClasses classes = slv2_world_get_plugin_classes(PluginModel::slv2_world()); LV2Children children; - SLV2_FOREACH(i, classes) { + SLV2_FOREACH(plugin_classes, i, classes) { SLV2PluginClass c = slv2_plugin_classes_get(classes, i); SLV2Value p = slv2_plugin_class_get_parent_uri(c); if (!p) |