diff options
author | David Robillard <d@drobilla.net> | 2011-04-28 06:02:12 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-04-28 06:02:12 +0000 |
commit | f936a6da1f4885db54365d81ee5959e84d359e85 (patch) | |
tree | 75460a84b9308639d1dffb97ba81666126391e83 /src/client | |
parent | aa000d3559d9971c9f7fe4c9b1305d217fd86215 (diff) | |
download | ingen-f936a6da1f4885db54365d81ee5959e84d359e85.tar.gz ingen-f936a6da1f4885db54365d81ee5959e84d359e85.tar.bz2 ingen-f936a6da1f4885db54365d81ee5959e84d359e85.zip |
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
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/PluginModel.cpp | 2 | ||||
-rw-r--r-- | src/client/PluginUI.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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, |