diff options
author | David Robillard <d@drobilla.net> | 2024-07-17 11:01:54 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-07-17 11:47:19 -0400 |
commit | 973db12fe33bab8e6efca80deca358b4998d5eb2 (patch) | |
tree | 6ae279e5edccdde1ebaf6de9aa4a2706b0a8ec4f /src/server/events | |
parent | e2bbec54b3b26173284754b786310fc7d8589ecc (diff) | |
download | ingen-973db12fe33bab8e6efca80deca358b4998d5eb2.tar.gz ingen-973db12fe33bab8e6efca80deca358b4998d5eb2.tar.bz2 ingen-973db12fe33bab8e6efca80deca358b4998d5eb2.zip |
Remove redundant casts
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/Copy.cpp | 3 | ||||
-rw-r--r-- | src/server/events/Disconnect.cpp | 2 | ||||
-rw-r--r-- | src/server/events/DisconnectAll.cpp | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/server/events/Copy.cpp b/src/server/events/Copy.cpp index f6529da3..74398ea4 100644 --- a/src/server/events/Copy.cpp +++ b/src/server/events/Copy.cpp @@ -125,8 +125,7 @@ Copy::engine_to_engine(PreProcessContext& ctx) } // Create new block - if (!(_block = dynamic_cast<BlockImpl*>( - _old_block->duplicate(_engine, raul::Symbol(new_path.symbol()), _parent)))) { + if (!(_block = _old_block->duplicate(_engine, raul::Symbol(new_path.symbol()), _parent))) { return Event::pre_process_done(Status::INTERNAL_ERROR); } diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp index e0db262a..bdb18ef9 100644 --- a/src/server/events/Disconnect.cpp +++ b/src/server/events/Disconnect.cpp @@ -168,7 +168,7 @@ Disconnect::pre_process(PreProcessContext& ctx) _impl = std::make_unique<Impl>(_engine, _graph, - dynamic_cast<PortImpl*>(tail), + tail, dynamic_cast<InputPort*>(head)); _compiled_graph = ctx.maybe_compile(*_graph); diff --git a/src/server/events/DisconnectAll.cpp b/src/server/events/DisconnectAll.cpp index 5f0e9a5e..87df61a5 100644 --- a/src/server/events/DisconnectAll.cpp +++ b/src/server/events/DisconnectAll.cpp @@ -112,7 +112,7 @@ DisconnectAll::pre_process(PreProcessContext& ctx) _impls.push_back( new Disconnect::Impl(_engine, _parent, - dynamic_cast<PortImpl*>(a->tail()), + a->tail(), dynamic_cast<InputPort*>(a->head()))); } @@ -123,7 +123,7 @@ DisconnectAll::pre_process(PreProcessContext& ctx) _impls.push_back( new Disconnect::Impl(_engine, parent_parent, - dynamic_cast<PortImpl*>(a->tail()), + a->tail(), dynamic_cast<InputPort*>(a->head()))); } } |