diff options
Diffstat (limited to 'src/PatchageCanvas.cpp')
-rw-r--r-- | src/PatchageCanvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 273896b..a26e75d 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -69,7 +69,7 @@ PatchageCanvas::find_port(const PortID& id) PortIndex::iterator i = _port_index.find(id); if (i != _port_index.end()) { - assert(i->second->module().lock()); + assert(i->second->module()); return i->second; } @@ -107,7 +107,7 @@ PatchageCanvas::remove_port(const PortID& id) _port_index.erase(id); - SharedPtr<PatchageModule> module = PtrCast<PatchageModule>(port->module().lock()); + PatchageModule* module = dynamic_cast<PatchageModule*>(port->module()); if (!module) return port; |