From c1775fa65273b5f5590a0319563159b13e901fbb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 9 Jan 2011 20:59:40 +0000 Subject: Code cleanups (cpplint). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2804 a436a847-0d15-0410-975c-d299462d15a1 --- src/JackDriver.cpp | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'src/JackDriver.cpp') diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index 9dd0029..45e8b93 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -34,9 +34,8 @@ #include "PatchageEvent.hpp" #include "PatchageModule.hpp" -using namespace std; -using namespace FlowCanvas; - +using std::endl; +using std::string; JackDriver::JackDriver(Patchage* app) : _app(app) @@ -119,13 +118,13 @@ JackDriver::detach() void JackDriver::destroy_all() { - ItemList modules = _app->canvas()->items(); // copy - for (ItemList::iterator m = modules.begin(); m != modules.end(); ++m) { - SharedPtr module = PtrCast(*m); + FlowCanvas::ItemList modules = _app->canvas()->items(); // copy + for (FlowCanvas::ItemList::iterator m = modules.begin(); m != modules.end(); ++m) { + SharedPtr module = PtrCast(*m); if (!module) continue; - PortVector ports = module->ports(); // copy - for (PortVector::iterator p = ports.begin(); p != ports.end(); ++p) { + FlowCanvas::PortVector ports = module->ports(); // copy + for (FlowCanvas::PortVector::iterator p = ports.begin(); p != ports.end(); ++p) { boost::shared_ptr port = boost::dynamic_pointer_cast(*p); if ((port && port->type() == JACK_AUDIO) || (port->type() == JACK_MIDI)) { module->remove_port(port); @@ -346,14 +345,14 @@ JackDriver::refresh() boost::shared_ptr client2_module = _app->canvas()->find_module(client2_name, port2_type); - boost::shared_ptr port1 = client1_module->get_port(port1_name); - boost::shared_ptr port2 = client2_module->get_port(port2_name); + boost::shared_ptr port1 = client1_module->get_port(port1_name); + boost::shared_ptr port2 = client2_module->get_port(port2_name); if (!port1 || !port2) continue; - boost::shared_ptr src; - boost::shared_ptr dst; + boost::shared_ptr src; + boost::shared_ptr dst; if (port1->is_output() && port2->is_input()) { src = port1; -- cgit v1.2.1