diff options
author | David Robillard <d@drobilla.net> | 2022-09-27 18:35:31 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-09-27 18:36:33 -0400 |
commit | 92cf4f1e48a90d8622f237a732b08487e0cde46c (patch) | |
tree | 9b9cdeeb50b14bf8d64e2c6e914573303a7cc61c /src/server/LV2Options.hpp | |
parent | 3ae3c86937c7ffc45d24e36a33560cd63ebb900b (diff) | |
download | ingen-92cf4f1e48a90d8622f237a732b08487e0cde46c.tar.gz ingen-92cf4f1e48a90d8622f237a732b08487e0cde46c.tar.bz2 ingen-92cf4f1e48a90d8622f237a732b08487e0cde46c.zip |
Use braced init lists to avoid repeating return types
Diffstat (limited to 'src/server/LV2Options.hpp')
-rw-r--r-- | src/server/LV2Options.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/LV2Options.hpp b/src/server/LV2Options.hpp index 50544e01..02824be6 100644 --- a/src/server/LV2Options.hpp +++ b/src/server/LV2Options.hpp @@ -66,7 +66,7 @@ public: f->URI = LV2_OPTIONS__options; f->data = malloc(sizeof(options)); memcpy(f->data, options, sizeof(options)); - return std::shared_ptr<LV2_Feature>(f, &free_feature); + return {f, &free_feature}; } private: |