diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 16:37:00 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:37:00 -0500 |
commit | 37729e5b314e39fb750a3fb46a005acdb15b4ac2 (patch) | |
tree | 5e8e316e9f186dc47bfef09c7546cc3a8f14f6bb /src/server/events | |
parent | 05bce078b6b5cfc64f10399da3a422d00fe6f790 (diff) | |
download | ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.gz ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.tar.bz2 ingen-37729e5b314e39fb750a3fb46a005acdb15b4ac2.zip |
Use auto for iterators
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/CreateBlock.cpp | 2 | ||||
-rw-r--r-- | src/server/events/Delete.cpp | 2 | ||||
-rw-r--r-- | src/server/events/Disconnect.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/server/events/CreateBlock.cpp b/src/server/events/CreateBlock.cpp index d2a7d350..1a70223c 100644 --- a/src/server/events/CreateBlock.cpp +++ b/src/server/events/CreateBlock.cpp @@ -117,7 +117,7 @@ CreateBlock::pre_process(PreProcessContext& ctx) // Load state from directory if given in properties LilvState* state = nullptr; - Properties::iterator s = _properties.find(uris.state_state); + auto s = _properties.find(uris.state_state); if (s != _properties.end() && s->second.type() == uris.forge.Path) { state = LV2Block::load_state(_engine.world(), s->second.ptr<char>()); } diff --git a/src/server/events/Delete.cpp b/src/server/events/Delete.cpp index e50e5fa8..310579aa 100644 --- a/src/server/events/Delete.cpp +++ b/src/server/events/Delete.cpp @@ -67,7 +67,7 @@ Delete::pre_process(PreProcessContext& ctx) _engine.control_bindings()->get_all(_path, _removed_bindings); - Store::iterator iter = _engine.store()->find(_path); + auto iter = _engine.store()->find(_path); if (iter == _engine.store()->end()) { return Event::pre_process_done(Status::NOT_FOUND, _path); } 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); } |