summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-30 23:07:41 +0000
committerDavid Robillard <d@drobilla.net>2011-11-30 23:07:41 +0000
commita11f349d1c0d617bbc4d3fb166d3bc2bd4809ee2 (patch)
tree80661b560c2efdc25ccb10cce6e718819d8cd497 /src
parentbf389be39b7f6f79a5c483c6f890e4690407a9de (diff)
downloadpatchage-a11f349d1c0d617bbc4d3fb166d3bc2bd4809ee2.tar.gz
patchage-a11f349d1c0d617bbc4d3fb166d3bc2bd4809ee2.tar.bz2
patchage-a11f349d1c0d617bbc4d3fb166d3bc2bd4809ee2.zip
Remove redundant Connection::_source and Connection::_dest.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3708 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/Patchage.cpp4
-rw-r--r--src/PatchageCanvas.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 13edebe..12f4344 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -533,8 +533,8 @@ Patchage::save_session(bool close)
for (FlowCanvas::Canvas::Connections::const_iterator c = _canvas->connections().begin();
c != _canvas->connections().end(); ++c) {
- PatchagePort* src = dynamic_cast<PatchagePort*>((*c)->source());
- PatchagePort* dst = dynamic_cast<PatchagePort*>((*c)->dest());
+ PatchagePort* src = dynamic_cast<PatchagePort*>((*c)->get_tail());
+ PatchagePort* dst = dynamic_cast<PatchagePort*>((*c)->get_head());
if (!src || !dst || src->type() == ALSA_MIDI || dst->type() == ALSA_MIDI) {
continue;
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp
index ef55f87..acd2b74 100644
--- a/src/PatchageCanvas.cpp
+++ b/src/PatchageCanvas.cpp
@@ -267,7 +267,7 @@ PatchageCanvas::on_connection_event(FlowCanvas::Connection* c, GdkEvent* ev)
select_connection(c);
return true;
case 2:
- disconnect(c->source(), c->dest());
+ disconnect(c->get_tail(), c->get_head());
return true;
}
}
@@ -282,7 +282,7 @@ PatchageCanvas::on_event(GdkEvent* ev)
clear_selection();
for (Connections::const_iterator i = cs.begin(); i != cs.end(); ++i) {
- disconnect((*i)->source(), (*i)->dest());
+ disconnect((*i)->get_tail(), (*i)->get_head());
}
}