diff options
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()))); } } |