summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/collections.c2
-rw-r--r--src/plugininstance.c6
-rw-r--r--src/pluginuiinstance.c4
3 files changed, 4 insertions, 8 deletions
diff --git a/src/collections.c b/src/collections.c
index eaee106..fc9e332 100644
--- a/src/collections.c
+++ b/src/collections.c
@@ -102,7 +102,7 @@ slv2_plugin_classes_get_by_uri(SLV2PluginClasses list, SLV2Value uri)
bool
slv2_values_contains(SLV2Values list, SLV2Value value)
{
- for (unsigned i=0; i < slv2_values_size(list); ++i)
+ for (unsigned i = 0; i < slv2_values_size(list); ++i)
if (slv2_value_equals(slv2_values_get_at(list, i), value))
return true;
diff --git a/src/plugininstance.c b/src/plugininstance.c
index 8287568..9d1a2b8 100644
--- a/src/plugininstance.c
+++ b/src/plugininstance.c
@@ -69,10 +69,8 @@ slv2_plugin_instantiate(SLV2Plugin plugin,
const char* bundle_path = slv2_uri_to_path(slv2_value_as_uri(
slv2_plugin_get_bundle_uri(plugin)));
- for (uint32_t i=0; 1; ++i) {
-
+ for (uint32_t i = 0; true; ++i) {
const LV2_Descriptor* ld = df(i);
-
if (!ld) {
SLV2_ERRORF("Did not find plugin %s in %s\n",
slv2_value_as_uri(slv2_plugin_get_uri(plugin)), lib_path);
@@ -136,7 +134,7 @@ slv2_plugin_instantiate(SLV2Plugin plugin,
}
// "Connect" all ports to NULL (catches bugs)
- for (uint32_t i=0; i < slv2_plugin_get_num_ports(plugin); ++i)
+ for (uint32_t i = 0; i < slv2_plugin_get_num_ports(plugin); ++i)
result->lv2_descriptor->connect_port(result->lv2_handle, i, NULL);
}
diff --git a/src/pluginuiinstance.c b/src/pluginuiinstance.c
index b677c94..7c5611e 100644
--- a/src/pluginuiinstance.c
+++ b/src/pluginuiinstance.c
@@ -70,10 +70,8 @@ slv2_ui_instantiate(SLV2Plugin plugin,
const char* bundle_path = slv2_uri_to_path(slv2_value_as_uri(slv2_ui_get_bundle_uri(ui)));
- for (uint32_t i=0; 1; ++i) {
-
+ for (uint32_t i = 0; true; ++i) {
const LV2UI_Descriptor* ld = df(i);
-
if (!ld) {
SLV2_ERRORF("Did not find UI %s in %s\n",
slv2_value_as_uri(slv2_ui_get_uri(ui)), lib_path);