diff options
author | David Robillard <d@drobilla.net> | 2020-08-01 16:46:54 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-02 01:48:48 +0200 |
commit | 95ceaf902f95baa431cdda972c0ebb48293e2022 (patch) | |
tree | cb4b6ba1e36c3da09baec85475d118cb523b32c1 /ingen | |
parent | 8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b (diff) | |
download | ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.tar.gz ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.tar.bz2 ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.zip |
Use std::make_shared
Diffstat (limited to 'ingen')
-rw-r--r-- | ingen/InstanceAccess.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ingen/InstanceAccess.hpp b/ingen/InstanceAccess.hpp index 52b48b3f..5d068ae1 100644 --- a/ingen/InstanceAccess.hpp +++ b/ingen/InstanceAccess.hpp @@ -25,6 +25,7 @@ #include "lilv/lilv.h" #include "lv2/core/lv2.h" +#include <memory> #include <utility> namespace ingen { @@ -44,9 +45,9 @@ struct InstanceAccess : public ingen::LV2Features::Feature return SPtr<LV2_Feature>(); } - return SPtr<LV2_Feature>( - new LV2_Feature{ "http://lv2plug.in/ns/ext/instance-access", - lilv_instance_get_handle(instance) }); + return std::make_shared<LV2_Feature>( + LV2_Feature{"http://lv2plug.in/ns/ext/instance-access", + lilv_instance_get_handle(instance)}); } }; |