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 --- src/client/ClientStore.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/client') diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp index 279d0cc6..74b307a5 100644 --- a/src/client/ClientStore.cpp +++ b/src/client/ClientStore.cpp @@ -315,8 +315,10 @@ ClientStore::operator()(const Put& msg) p->second.type() == _uris.forge.URID)) { const URI uri(_uris.forge.str(p->second, false)); if (!(plug = _plugin(uri))) { - plug = SPtr( - new PluginModel(uris(), uri, Atom(), Properties())); + plug = std::make_shared(uris(), + uri, + Atom(), + Properties()); add_plugin(plug); } -- cgit v1.2.1