From 00f610655dd00dd171a7ce14a85db14a2bfcaf3b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 21 Jul 2020 20:44:43 +0200 Subject: Remove useless casts --- src/PatchageCanvas.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/PatchageCanvas.cpp b/src/PatchageCanvas.cpp index 1d64c1b..6f6bbcf 100644 --- a/src/PatchageCanvas.cpp +++ b/src/PatchageCanvas.cpp @@ -108,7 +108,7 @@ PatchageCanvas::find_port(const PortID& id) (jack_port_flags(jack_port) & JackPortIsInput) ? Input : Output); if (module) - pp = dynamic_cast(module->get_port(port_name)); + pp = module->get_port(port_name); if (pp) index_port(id, pp); @@ -202,8 +202,7 @@ PatchageCanvas::find_port_by_name(const std::string& client_name, for (ModuleIndex::const_iterator j = i; j != _module_index.end() && j->first == client_name; ++j) { - PatchagePort* port = - dynamic_cast(j->second->get_port(port_name)); + PatchagePort* port = j->second->get_port(port_name); if (port) return port; } -- cgit v1.2.1