diff options
author | David Robillard <d@drobilla.net> | 2011-01-09 20:59:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-01-09 20:59:40 +0000 |
commit | c1775fa65273b5f5590a0319563159b13e901fbb (patch) | |
tree | e6704c3948b2b6204eec93621d71ceeb50ee1dfd /src/PatchageCanvas.cpp | |
parent | 9a1cd7003886f89e2228d74d61130dc5d24c06a3 (diff) | |
download | patchage-c1775fa65273b5f5590a0319563159b13e901fbb.tar.gz patchage-c1775fa65273b5f5590a0319563159b13e901fbb.tar.bz2 patchage-c1775fa65273b5f5590a0319563159b13e901fbb.zip |
Code cleanups (cpplint).
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2804 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index a8cd0e7..ae994e9 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -137,7 +137,8 @@ PatchageCanvas::find_port_by_name(const std::string& client_name, void -PatchageCanvas::connect(boost::shared_ptr<Connectable> port1, boost::shared_ptr<Connectable> port2) +PatchageCanvas::connect(boost::shared_ptr<FlowCanvas::Connectable> port1, + boost::shared_ptr<FlowCanvas::Connectable> port2) { boost::shared_ptr<PatchagePort> p1 = boost::dynamic_pointer_cast<PatchagePort>(port1); boost::shared_ptr<PatchagePort> p2 = boost::dynamic_pointer_cast<PatchagePort>(port2); @@ -160,7 +161,8 @@ PatchageCanvas::connect(boost::shared_ptr<Connectable> port1, boost::shared_ptr< void -PatchageCanvas::disconnect(boost::shared_ptr<Connectable> port1, boost::shared_ptr<Connectable> port2) +PatchageCanvas::disconnect(boost::shared_ptr<FlowCanvas::Connectable> port1, + boost::shared_ptr<FlowCanvas::Connectable> port2) { boost::shared_ptr<PatchagePort> input = boost::dynamic_pointer_cast<PatchagePort>(port1); boost::shared_ptr<PatchagePort> output = boost::dynamic_pointer_cast<PatchagePort>(port2); @@ -225,7 +227,7 @@ PatchageCanvas::add_module(const std::string& name, boost::shared_ptr<PatchageMo bool -PatchageCanvas::remove_item(boost::shared_ptr<Item> i) +PatchageCanvas::remove_item(boost::shared_ptr<FlowCanvas::Item> i) { // Remove item from canvas const bool ret = FlowCanvas::Canvas::remove_item(i); |