From 2a16021425dab995e902d133b060ebcf6c59a00c 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/slv2@3211 a436a847-0d15-0410-975c-d299462d15a1 --- src/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/port.c') diff --git a/src/port.c b/src/port.c index f1346b4..a0de260 100644 --- a/src/port.c +++ b/src/port.c @@ -48,7 +48,7 @@ slv2_port_is_a(SLV2Plugin plugin, SLV2Port port, SLV2Value port_class) { - SLV2_FOREACH(i, port->classes) + SLV2_FOREACH(values, i, port->classes) if (slv2_value_equals(slv2_values_get(port->classes, i), port_class)) return true; -- cgit v1.2.1