diff options
author | David Robillard <d@drobilla.net> | 2022-05-26 13:24:17 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-05-26 13:24:17 -0400 |
commit | 0744f58d5fc995009a22466299cbe92ba4be4d60 (patch) | |
tree | ec0c846a2e3ab0782c26df549faa723b084cdb0d /include/lilv | |
parent | 7f723b48680fdb6a1575ea00aa03714ba811626b (diff) | |
download | lilv-0744f58d5fc995009a22466299cbe92ba4be4d60.tar.gz lilv-0744f58d5fc995009a22466299cbe92ba4be4d60.tar.bz2 lilv-0744f58d5fc995009a22466299cbe92ba4be4d60.zip |
Suppress new warnings in clang-tidy 13
Diffstat (limited to 'include/lilv')
-rw-r--r-- | include/lilv/lilvmm.hpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/include/lilv/lilvmm.hpp b/include/lilv/lilvmm.hpp index 0ac802d..0070246 100644 --- a/include/lilv/lilvmm.hpp +++ b/include/lilv/lilvmm.hpp @@ -337,16 +337,15 @@ struct Instance { LILV_DEPRECATED inline Instance(Plugin plugin, double sample_rate) - { - me = lilv_plugin_instantiate(plugin, sample_rate, nullptr); - } + : me(lilv_plugin_instantiate(plugin, sample_rate, nullptr)) + {} - LILV_DEPRECATED inline Instance(Plugin plugin, - double sample_rate, - LV2_Feature* const* features) - { - me = lilv_plugin_instantiate(plugin, sample_rate, features); - } + LILV_DEPRECATED + inline Instance(Plugin plugin, + double sample_rate, + LV2_Feature* const* features) + : me(lilv_plugin_instantiate(plugin, sample_rate, features)) + {} static inline Instance* create(Plugin plugin, double sample_rate, |