summaryrefslogtreecommitdiffstats
path: root/src/progs/ingenuity/PatchCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-10-04 07:11:09 +0000
committerDavid Robillard <d@drobilla.net>2006-10-04 07:11:09 +0000
commit32261ba465be203f973a0e126672b8d7188ba327 (patch)
treefcab8b01ffeb2c1955b8f712c5f3eef6e1f13f2b /src/progs/ingenuity/PatchCanvas.cpp
parent1e01da451b279943ed51999ee06d64aba7c8faa2 (diff)
downloadingen-32261ba465be203f973a0e126672b8d7188ba327.tar.gz
ingen-32261ba465be203f973a0e126672b8d7188ba327.tar.bz2
ingen-32261ba465be203f973a0e126672b8d7188ba327.zip
Global build system, build system bugfixes.
git-svn-id: http://svn.drobilla.net/lad/ingen@154 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchCanvas.cpp')
-rw-r--r--src/progs/ingenuity/PatchCanvas.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/progs/ingenuity/PatchCanvas.cpp b/src/progs/ingenuity/PatchCanvas.cpp
index 3f9c97fa..289150de 100644
--- a/src/progs/ingenuity/PatchCanvas.cpp
+++ b/src/progs/ingenuity/PatchCanvas.cpp
@@ -174,10 +174,8 @@ PatchCanvas::connection(CountedPtr<ConnectionModel> cm)
boost::shared_ptr<LibFlowCanvas::Port> dst = get_port(dst_parent_name, cm->dst_port_path().name());
if (src && dst) {
- boost::shared_ptr<Connection> c(new Connection(shared_from_this(), cm, src, dst));
- src->add_connection(c);
- dst->add_connection(c);
- add_connection(c);
+ add_connection(boost::shared_ptr<Connection>(
+ new Connection(shared_from_this(), cm, src, dst)));
} else {
cerr << "[Canvas] ERROR: Unable to find ports to create connection." << endl;
}