diff options
author | David Robillard <d@drobilla.net> | 2012-07-30 23:00:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-07-30 23:00:13 +0000 |
commit | 0e1bf6ddfc77866ff6477a3f394c030c2a5e1b39 (patch) | |
tree | afcba1a0ba16837f7b6f1a4822b7164deccb61e7 /src/server/InputPort.cpp | |
parent | 921881813d7fb2e46a0e65d1e888f6cd9a928945 (diff) | |
download | ingen-0e1bf6ddfc77866ff6477a3f394c030c2a5e1b39.tar.gz ingen-0e1bf6ddfc77866ff6477a3f394c030c2a5e1b39.tar.bz2 ingen-0e1bf6ddfc77866ff6477a3f394c030c2a5e1b39.zip |
Eliminate pure virtual base classes Patch, Node, and Port, and the virtual inheritance they imposed.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4576 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/InputPort.cpp')
-rw-r--r-- | src/server/InputPort.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 70d3662c..90d01cca 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -17,8 +17,6 @@ #include <cstdlib> #include <cassert> -#include "ingen/Patch.hpp" - #include "BufferFactory.hpp" #include "EdgeImpl.hpp" #include "Engine.hpp" @@ -48,8 +46,9 @@ InputPort::InputPort(BufferFactory& bufs, { const Ingen::Shared::URIs& uris = bufs.uris(); - if (!dynamic_cast<Patch*>(parent)) + if (parent->graph_type() != GraphObject::PATCH) { add_property(uris.rdf_type, uris.lv2_InputPort); + } // Set default control range if (type == PortType::CONTROL || type == PortType::CV) { |