summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-01 16:46:54 +0200
committerDavid Robillard <d@drobilla.net>2020-08-02 01:48:48 +0200
commit95ceaf902f95baa431cdda972c0ebb48293e2022 (patch)
treecb4b6ba1e36c3da09baec85475d118cb523b32c1 /src/client
parent8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b (diff)
downloadingen-95ceaf902f95baa431cdda972c0ebb48293e2022.tar.gz
ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.tar.bz2
ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.zip
Use std::make_shared
Diffstat (limited to 'src/client')
-rw-r--r--src/client/ClientStore.cpp6
1 files changed, 4 insertions, 2 deletions
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<PluginModel>(
- new PluginModel(uris(), uri, Atom(), Properties()));
+ plug = std::make_shared<PluginModel>(uris(),
+ uri,
+ Atom(),
+ Properties());
add_plugin(plug);
}