summaryrefslogtreecommitdiffstats
path: root/src/server/events/Disconnect.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/events/Disconnect.cpp
parent05bce078b6b5cfc64f10399da3a422d00fe6f790 (diff)
downloadingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.gz
ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.bz2
ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.zip
Use auto for iterators
Diffstat (limited to 'src/server/events/Disconnect.cpp')
-rw-r--r--src/server/events/Disconnect.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp
index 7e38ffe1..4553c8a2 100644
--- a/src/server/events/Disconnect.cpp
+++ b/src/server/events/Disconnect.cpp
@@ -68,13 +68,13 @@ Disconnect::Impl::Impl(Engine& e,
BlockImpl* const head_block = _head->parent_block();
// Remove tail from head's providers
- std::set<BlockImpl*>::iterator hp = head_block->providers().find(tail_block);
+ auto hp = head_block->providers().find(tail_block);
if (hp != head_block->providers().end()) {
head_block->providers().erase(hp);
}
// Remove head from tail's providers
- std::set<BlockImpl*>::iterator td = tail_block->dependants().find(head_block);
+ auto td = tail_block->dependants().find(head_block);
if (td != tail_block->dependants().end()) {
tail_block->dependants().erase(td);
}