diff options
author | David Robillard <d@drobilla.net> | 2017-12-26 14:56:35 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-29 10:44:36 -0500 |
commit | d1f677c22311d6eb7bc2073aa1e80921e45dbb1d (patch) | |
tree | 461e1f1e8e88fd1ab36d1cee8a675de859b81eff /src/collections.c | |
parent | 105294454ba1f3f89fa0f6a679503204397d35d2 (diff) | |
download | lilv-d1f677c22311d6eb7bc2073aa1e80921e45dbb1d.tar.gz lilv-d1f677c22311d6eb7bc2073aa1e80921e45dbb1d.tar.bz2 lilv-d1f677c22311d6eb7bc2073aa1e80921e45dbb1d.zip |
Use braces everywhere
Diffstat (limited to 'src/collections.c')
-rw-r--r-- | src/collections.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/collections.c b/src/collections.c index 95d8fe6..f519b71 100644 --- a/src/collections.c +++ b/src/collections.c @@ -41,8 +41,9 @@ lilv_collection_new(ZixComparator cmp, ZixDestroyFunc destructor) void lilv_collection_free(LilvCollection* coll) { - if (coll) + if (coll) { zix_tree_free((ZixTree*)coll); + } } unsigned @@ -129,9 +130,11 @@ lilv_plugins_get_by_uri(const LilvPlugins* list, const LilvNode* uri) LILV_API bool lilv_nodes_contains(const LilvNodes* list, const LilvNode* value) { - LILV_FOREACH(nodes, i, list) - if (lilv_node_equals(lilv_nodes_get(list, i), value)) + LILV_FOREACH(nodes, i, list) { + if (lilv_node_equals(lilv_nodes_get(list, i), value)) { return true; + } + } return false; } |