From 14cd32a043552d39738ae0e84e4ef8ab93783296 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Dec 2019 19:13:33 +0100 Subject: Cleanup: Use "auto" to avoid repeating type names --- src/server/BlockFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/BlockFactory.cpp') 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); -- cgit v1.2.1