summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-21 15:59:21 +0000
committerDavid Robillard <d@drobilla.net>2011-10-21 15:59:21 +0000
commit165031dd1ec74125362414d57afb6e51680e969b (patch)
tree243ef4afaff52d6e47142f21672836bc2e9202ea
parent4957c342b592ac1cc2c8983d1acfe957def8b3c6 (diff)
downloadingen-165031dd1ec74125362414d57afb6e51680e969b.tar.gz
ingen-165031dd1ec74125362414d57afb6e51680e969b.tar.bz2
ingen-165031dd1ec74125362414d57afb6e51680e969b.zip
Use Builder::connect
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3557 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/gui/PatchCanvas.cpp10
-rw-r--r--src/shared/ClashAvoider.hpp1
2 files changed, 1 insertions, 10 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp
index d8d89651..befb706d 100644
--- a/src/gui/PatchCanvas.cpp
+++ b/src/gui/PatchCanvas.cpp
@@ -728,15 +728,7 @@ PatchCanvas::paste()
builder.build(i->second);
}
- // Successful connections
- SharedPtr<const PatchModel> root = PtrCast<const PatchModel>(
- clipboard.object(_patch->path()));
- assert(root);
- for (Patch::Connections::const_iterator i = root->connections().begin();
- i != root->connections().end(); ++i) {
- App::instance().engine()->connect(i->second->src_port_path(),
- i->second->dst_port_path());
- }
+ builder.connect(PtrCast<const PatchModel>(clipboard.object(_patch->path())));
}
void
diff --git a/src/shared/ClashAvoider.hpp b/src/shared/ClashAvoider.hpp
index 87fd106a..6c8e2018 100644
--- a/src/shared/ClashAvoider.hpp
+++ b/src/shared/ClashAvoider.hpp
@@ -21,7 +21,6 @@
#include <inttypes.h>
#include <map>
-#include <string>
#include "ingen/CommonInterface.hpp"