summaryrefslogtreecommitdiffstats
path: root/src/client/ClientStore.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/client/ClientStore.cpp
parent05bce078b6b5cfc64f10399da3a422d00fe6f790 (diff)
downloadingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.gz
ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.bz2
ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.zip
Use auto for iterators
Diffstat (limited to 'src/client/ClientStore.cpp')
-rw-r--r--src/client/ClientStore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/ClientStore.cpp b/src/client/ClientStore.cpp
index 123b9050..356a6b31 100644
--- a/src/client/ClientStore.cpp
+++ b/src/client/ClientStore.cpp
@@ -55,7 +55,7 @@ ClientStore::add_object(SPtr<ObjectModel> object)
{
// If we already have "this" object, merge the existing one into the new
// one (with precedence to the new values).
- iterator existing = find(object->path());
+ auto existing = find(object->path());
if (existing != end()) {
dynamic_ptr_cast<ObjectModel>(existing->second)->set(object);
} else {
@@ -202,7 +202,7 @@ ClientStore::operator()(const Del& del)
if (uri_is_path(del.uri)) {
remove_object(uri_to_path(del.uri));
} else {
- Plugins::iterator p = _plugins->find(del.uri);
+ auto p = _plugins->find(del.uri);
if (p != _plugins->end()) {
_plugins->erase(p);
_signal_plugin_deleted.emit(del.uri);
@@ -296,7 +296,7 @@ ClientStore::operator()(const Put& msg)
model->set_properties(properties);
add_object(model);
} else if (is_block) {
- Iterator p = properties.find(_uris.lv2_prototype);
+ auto p = properties.find(_uris.lv2_prototype);
if (p == properties.end()) {
p = properties.find(_uris.ingen_prototype);
}