From f936a6da1f4885db54365d81ee5959e84d359e85 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 28 Apr 2011 06:02:12 +0000 Subject: More future-proof collection APIs. Make all iterator actions occur through a collection specific function. Verbose, and a low of API, but allows for the possibility of different collection implementation types (given a choice between verbosity and no type safety, I'll take verbosity). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3211 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PluginModel.cpp | 2 +- src/client/PluginUI.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp index a18eb0fe..77b3e4c9 100644 --- a/src/client/PluginModel.cpp +++ b/src/client/PluginModel.cpp @@ -103,7 +103,7 @@ 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); - SLV2_FOREACH(i, values) { + SLV2_FOREACH(values, 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))); diff --git a/src/client/PluginUI.cpp b/src/client/PluginUI.cpp index 2df77156..f8232426 100644 --- a/src/client/PluginUI.cpp +++ b/src/client/PluginUI.cpp @@ -130,7 +130,7 @@ PluginUI::create(Ingen::Shared::World* world, SLV2UIs uis = slv2_plugin_get_uis(plugin); SLV2UI ui = NULL; SLV2Value ui_type = NULL; - SLV2_FOREACH(u, uis) { + SLV2_FOREACH(uis, u, uis) { SLV2UI this_ui = slv2_uis_get(uis, u); if (slv2_ui_is_supported(this_ui, suil_ui_supported, -- cgit v1.2.1