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 /lilv | |
parent | 105294454ba1f3f89fa0f6a679503204397d35d2 (diff) | |
download | lilv-d1f677c22311d6eb7bc2073aa1e80921e45dbb1d.tar.gz lilv-d1f677c22311d6eb7bc2073aa1e80921e45dbb1d.tar.bz2 lilv-d1f677c22311d6eb7bc2073aa1e80921e45dbb1d.zip |
Use braces everywhere
Diffstat (limited to 'lilv')
-rw-r--r-- | lilv/lilv.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lilv/lilv.h b/lilv/lilv.h index 7562f09..c1233bb 100644 --- a/lilv/lilv.h +++ b/lilv/lilv.h @@ -1678,8 +1678,9 @@ lilv_instance_connect_port(LilvInstance* instance, static inline void lilv_instance_activate(LilvInstance* instance) { - if (instance->lv2_descriptor->activate) + if (instance->lv2_descriptor->activate) { instance->lv2_descriptor->activate(instance->lv2_handle); + } } /** @@ -1702,8 +1703,9 @@ lilv_instance_run(LilvInstance* instance, static inline void lilv_instance_deactivate(LilvInstance* instance) { - if (instance->lv2_descriptor->deactivate) + if (instance->lv2_descriptor->deactivate) { instance->lv2_descriptor->deactivate(instance->lv2_handle); + } } /** @@ -1715,10 +1717,11 @@ static inline const void* lilv_instance_get_extension_data(const LilvInstance* instance, const char* uri) { - if (instance->lv2_descriptor->extension_data) + if (instance->lv2_descriptor->extension_data) { return instance->lv2_descriptor->extension_data(uri); - else + } else { return NULL; + } } /** |