summaryrefslogtreecommitdiffstats
path: root/src/server/DuplexPort.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-03-26 15:24:20 +0200
committerDavid Robillard <d@drobilla.net>2017-03-26 18:13:33 +0200
commitba3e956f5be02730368b75fbec704e75b3f036da (patch)
tree1163df60cc7f3279cf940ccd17d9290e7f0da317 /src/server/DuplexPort.cpp
parent6268bb2accfdc0dcad6cb8b54ba56ec64609d474 (diff)
downloadingen-ba3e956f5be02730368b75fbec704e75b3f036da.tar.gz
ingen-ba3e956f5be02730368b75fbec704e75b3f036da.tar.bz2
ingen-ba3e956f5be02730368b75fbec704e75b3f036da.zip
Remove Node::graph_type() method and GraphType enum
Diffstat (limited to 'src/server/DuplexPort.cpp')
-rw-r--r--src/server/DuplexPort.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/DuplexPort.cpp b/src/server/DuplexPort.cpp
index b01da97f..0b115bc0 100644
--- a/src/server/DuplexPort.cpp
+++ b/src/server/DuplexPort.cpp
@@ -56,7 +56,7 @@ DuplexPort::DuplexPort(BufferFactory& bufs,
_is_output = is_output;
if (is_output) {
- if (parent->graph_type() != Node::GraphType::GRAPH) {
+ if (!dynamic_cast<GraphImpl*>(parent)) {
remove_property(bufs.uris().rdf_type, bufs.uris().lv2_InputPort.urid);
add_property(bufs.uris().rdf_type, bufs.uris().lv2_OutputPort.urid);
}