From 95ceaf902f95baa431cdda972c0ebb48293e2022 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 1 Aug 2020 16:46:54 +0200 Subject: Use std::make_shared --- ingen/InstanceAccess.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ingen') 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 #include namespace ingen { @@ -44,9 +45,9 @@ struct InstanceAccess : public ingen::LV2Features::Feature return SPtr(); } - return SPtr( - new LV2_Feature{ "http://lv2plug.in/ns/ext/instance-access", - lilv_instance_get_handle(instance) }); + return std::make_shared( + LV2_Feature{"http://lv2plug.in/ns/ext/instance-access", + lilv_instance_get_handle(instance)}); } }; -- cgit v1.2.1