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 /src/client/ClientStore.cpp | |
parent | 8a7cc98bd39e95fbdab7bbb8e3e6e4aa351c219b (diff) | |
download | ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.tar.gz ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.tar.bz2 ingen-95ceaf902f95baa431cdda972c0ebb48293e2022.zip |
Use std::make_shared
Diffstat (limited to 'src/client/ClientStore.cpp')
-rw-r--r-- | src/client/ClientStore.cpp | 6 |
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); } |