summaryrefslogtreecommitdiffstats
path: root/src/server/BlockFactory.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-12-25 16:37:00 -0500
committerDavid Robillard <d@drobilla.net>2017-12-25 16:37:00 -0500
commit37729e5b314e39fb750a3fb46a005acdb15b4ac2 (patch)
tree5e8e316e9f186dc47bfef09c7546cc3a8f14f6bb /src/server/BlockFactory.cpp
parent05bce078b6b5cfc64f10399da3a422d00fe6f790 (diff)
downloadingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.gz
ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.bz2
ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.zip
Use auto for iterators
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 1cae6f58..d33be9fc 100644
--- a/src/server/BlockFactory.cpp
+++ b/src/server/BlockFactory.cpp
@@ -82,7 +82,7 @@ BlockFactory::refresh()
// Add any new plugins to response
std::set<PluginImpl*> new_plugins;
for (const auto& p : _plugins) {
- Plugins::const_iterator o = old_plugins.find(p.first);
+ auto o = old_plugins.find(p.first);
if (o == old_plugins.end()) {
new_plugins.insert(p.second);
}
@@ -213,7 +213,7 @@ BlockFactory::load_lv2_plugins()
continue;
}
- Plugins::iterator p = _plugins.find(uri);
+ auto p = _plugins.find(uri);
if (p == _plugins.end()) {
LV2Plugin* const plugin = new LV2Plugin(_world, lv2_plug);
_plugins.insert(make_pair(uri, plugin));