summaryrefslogtreecommitdiffstats
path: root/src/server/events/Delete.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-07-30 16:54:03 +0000
committerDavid Robillard <d@drobilla.net>2012-07-30 16:54:03 +0000
commit155f4c422735cdb7400d9290dc6defca8f580a1b (patch)
treea3a79ec2db90d91ed7f238f8ce138f1e83dc23f8 /src/server/events/Delete.cpp
parenta2aaeab5f5a42c7980ea0e015a143bb01fdb4015 (diff)
downloadingen-155f4c422735cdb7400d9290dc6defca8f580a1b.tar.gz
ingen-155f4c422735cdb7400d9290dc6defca8f580a1b.tar.bz2
ingen-155f4c422735cdb7400d9290dc6defca8f580a1b.zip
Shrink events.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4574 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/events/Delete.cpp')
-rw-r--r--src/server/events/Delete.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/server/events/Delete.cpp b/src/server/events/Delete.cpp
index 9c68f4fe..b16a1f8d 100644
--- a/src/server/events/Delete.cpp
+++ b/src/server/events/Delete.cpp
@@ -41,7 +41,6 @@ Delete::Delete(Engine& engine,
const Raul::URI& uri)
: Event(engine, client, id, time)
, _uri(uri)
- , _store_iterator(engine.engine_store()->end())
, _garbage(NULL)
, _engine_port(NULL)
, _patch_node_listnode(NULL)
@@ -73,17 +72,17 @@ Delete::pre_process()
_removed_bindings = _engine.control_bindings()->remove(_path);
- _store_iterator = _engine.engine_store()->find(_path);
+ EngineStore::iterator iter = _engine.engine_store()->find(_path);
- if (_store_iterator != _engine.engine_store()->end()) {
- _node = PtrCast<NodeImpl>(_store_iterator->second);
+ if (iter != _engine.engine_store()->end()) {
+ _node = PtrCast<NodeImpl>(iter->second);
if (!_node)
- _port = PtrCast<PortImpl>(_store_iterator->second);
+ _port = PtrCast<PortImpl>(iter->second);
}
- if (_store_iterator != _engine.engine_store()->end()) {
- _removed_table = _engine.engine_store()->remove(_store_iterator);
+ if (iter != _engine.engine_store()->end()) {
+ _removed_table = _engine.engine_store()->remove(iter);
}
if (_node && !_path.is_root()) {