diff options
author | David Robillard <d@drobilla.net> | 2007-03-12 18:13:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-03-12 18:13:03 +0000 |
commit | 47372f00cc6fe39f65594aa6edf6544157e94ce7 (patch) | |
tree | e1c7a9b1b3d6fe07631a05f3410ea2fa4b21e193 /src/JackDriver.cpp | |
parent | 2834b233eedf0c66f65ac8169264d8359d8fc7c6 (diff) | |
download | patchage-47372f00cc6fe39f65594aa6edf6544157e94ce7.tar.gz patchage-47372f00cc6fe39f65594aa6edf6544157e94ce7.tar.bz2 patchage-47372f00cc6fe39f65594aa6edf6544157e94ce7.zip |
Removed name-based interface for FlowCanvas (using the view as a model = evil), related performance improvements (especially for Machina).
Updates for FlowCanvas API changes.
Machina SMF import performance improvements (temporarily disabled node labels).
git-svn-id: http://svn.drobilla.net/lad/patchage@356 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r-- | src/JackDriver.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index 3f2920c..02bd105 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -114,9 +114,9 @@ JackDriver::detach() void JackDriver::destroy_all_ports() { - ItemMap modules = _app->canvas()->items(); // copy - for (ItemMap::iterator m = modules.begin(); m != modules.end(); ++m) { - SharedPtr<Module> module = PtrCast<Module>(m->second); + ItemList modules = _app->canvas()->items(); // copy + for (ItemList::iterator m = modules.begin(); m != modules.end(); ++m) { + SharedPtr<Module> module = PtrCast<Module>(*m); if (!module) continue; PortVector ports = module->ports(); // copy @@ -128,7 +128,7 @@ JackDriver::destroy_all_ports() } if (module->ports().empty()) - _app->canvas()->remove_item(module->name()); + _app->canvas()->remove_item(module); } } |