summaryrefslogtreecommitdiffstats
path: root/src/JackDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-28 15:12:14 +0100
committerDavid Robillard <d@drobilla.net>2020-11-28 15:12:14 +0100
commit62b19ed3c43ceb3a88944b892a24686ca0b7b036 (patch)
treeb3ea07b29f8c15aa0517bd8844bb176c7f04e19c /src/JackDriver.cpp
parente3f3f3586411136e5b7f61cc1726bbc0635deddd (diff)
downloadpatchage-62b19ed3c43ceb3a88944b892a24686ca0b7b036.tar.gz
patchage-62b19ed3c43ceb3a88944b892a24686ca0b7b036.tar.bz2
patchage-62b19ed3c43ceb3a88944b892a24686ca0b7b036.zip
Remove null port IDs
This statically ensures that a PortID is always valid.
Diffstat (limited to 'src/JackDriver.cpp')
-rw-r--r--src/JackDriver.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp
index 904fcc6..0d8c2b9 100644
--- a/src/JackDriver.cpp
+++ b/src/JackDriver.cpp
@@ -259,9 +259,7 @@ JackDriver::create_port(PatchageModule& parent,
_app->show_human_names(),
order);
- if (id.type() != PortID::Type::nothing) {
- dynamic_cast<PatchageCanvas*>(parent.canvas())->index_port(id, ret);
- }
+ _app->canvas()->index_port(id, ret);
return ret;
}