summaryrefslogtreecommitdiffstats
path: root/src/server/BlockFactory.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-12-08 19:13:33 +0100
committerDavid Robillard <d@drobilla.net>2019-12-08 20:59:06 +0100
commit14cd32a043552d39738ae0e84e4ef8ab93783296 (patch)
tree829845243215ed3fd96ff8fd6d6f324c35a60b3e /src/server/BlockFactory.cpp
parent88dff1aabd3c81d1d81ac256e0061b98e0d24cec (diff)
downloadingen-14cd32a043552d39738ae0e84e4ef8ab93783296.tar.gz
ingen-14cd32a043552d39738ae0e84e4ef8ab93783296.tar.bz2
ingen-14cd32a043552d39738ae0e84e4ef8ab93783296.zip
Cleanup: Use "auto" to avoid repeating type names
Diffstat (limited to 'src/server/BlockFactory.cpp')
-rw-r--r--src/server/BlockFactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/BlockFactory.cpp b/src/server/BlockFactory.cpp
index 18b19a4c..6fc5b9ee 100644
--- a/src/server/BlockFactory.cpp
+++ b/src/server/BlockFactory.cpp
@@ -138,7 +138,7 @@ BlockFactory::load_plugin(const URI& uri)
const LilvPlugins* plugs = lilv_world_get_all_plugins(_world.lilv_world());
const LilvPlugin* plug = lilv_plugins_get_by_uri(plugs, node);
if (plug) {
- LV2Plugin* const ingen_plugin = new LV2Plugin(_world, plug);
+ auto* const ingen_plugin = new LV2Plugin(_world, plug);
_plugins.emplace(uri, ingen_plugin);
}
lilv_node_free(node);
@@ -215,7 +215,7 @@ BlockFactory::load_lv2_plugins()
auto p = _plugins.find(uri);
if (p == _plugins.end()) {
- LV2Plugin* const plugin = new LV2Plugin(_world, lv2_plug);
+ auto* const plugin = new LV2Plugin(_world, lv2_plug);
_plugins.emplace(uri, plugin);
} else if (lilv_plugin_verify(lv2_plug)) {
p->second->set_is_zombie(false);