From ad43d2e08cea225635b56c5473a768bc853ecda3 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 13 Dec 2016 17:51:55 -0500 Subject: Remove virtual inheritance from Port hierarchy This was confusing stoat, and is questionable design anyway. The OutputPort functionality has been moved to PortImpl, which is a basic port with buffers suitable for use as an output, and is overridden by InputPort and DuplexPort where necessary. --- src/server/events/Disconnect.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/server/events/Disconnect.cpp') diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp index 40b85c22..8875eb0c 100644 --- a/src/server/events/Disconnect.cpp +++ b/src/server/events/Disconnect.cpp @@ -27,7 +27,6 @@ #include "Engine.hpp" #include "GraphImpl.hpp" #include "InputPort.hpp" -#include "OutputPort.hpp" #include "PortImpl.hpp" #include "PreProcessContext.hpp" #include "RunContext.hpp" @@ -61,7 +60,7 @@ Disconnect::~Disconnect() Disconnect::Impl::Impl(Engine& e, GraphImpl* graph, - OutputPort* t, + PortImpl* t, InputPort* h) : _engine(e) , _tail(t) @@ -165,7 +164,7 @@ Disconnect::pre_process(PreProcessContext& ctx) _impl = new Impl(_engine, _graph, - dynamic_cast(tail), + dynamic_cast(tail), dynamic_cast(head)); if (ctx.must_compile(_graph)) { -- cgit v1.2.1