summaryrefslogtreecommitdiffstats
path: root/src/server/BlockFactory.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-08 06:50:14 +0100
committerDavid Robillard <d@drobilla.net>2019-03-09 00:43:43 +0100
commit6bb3c48972d172fec244afae08a905e2246d9cda (patch)
tree8b4e2b0f22896a4b15cbfba9dfc0497a0586d4c8 /src/server/BlockFactory.hpp
parente4edf13d6ed0a3bc8cb6103d48b082e850949e4c (diff)
downloadingen-6bb3c48972d172fec244afae08a905e2246d9cda.tar.gz
ingen-6bb3c48972d172fec244afae08a905e2246d9cda.tar.bz2
ingen-6bb3c48972d172fec244afae08a905e2246d9cda.zip
Use smart pointers over manual memory management
Diffstat (limited to 'src/server/BlockFactory.hpp')
-rw-r--r--src/server/BlockFactory.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/BlockFactory.hpp b/src/server/BlockFactory.hpp
index 80f99563..cac9a1d1 100644
--- a/src/server/BlockFactory.hpp
+++ b/src/server/BlockFactory.hpp
@@ -43,11 +43,11 @@ public:
*
* @return The set of newly loaded plugins.
*/
- std::set<PluginImpl*> refresh();
+ std::set<SPtr<PluginImpl>> refresh();
void load_plugin(const URI& uri);
- typedef std::map<URI, PluginImpl*> Plugins;
+ using Plugins = std::map<URI, SPtr<PluginImpl>>;
const Plugins& plugins();
PluginImpl* plugin(const URI& uri);