summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/BlockImpl.hpp2
-rw-r--r--src/server/DuplexPort.cpp2
-rw-r--r--src/server/GraphImpl.hpp2
-rw-r--r--src/server/InputPort.cpp2
-rw-r--r--src/server/PortImpl.cpp3
-rw-r--r--src/server/PortImpl.hpp2
6 files changed, 4 insertions, 9 deletions
diff --git a/src/server/BlockImpl.hpp b/src/server/BlockImpl.hpp
index 1a794e2d..0faf68ff 100644
--- a/src/server/BlockImpl.hpp
+++ b/src/server/BlockImpl.hpp
@@ -69,8 +69,6 @@ public:
virtual ~BlockImpl();
- virtual GraphType graph_type() const { return GraphType::BLOCK; }
-
BlockImpl* parent() const { return _parent; }
GraphImpl* graph_parent() const { return (GraphImpl*)_parent; }
const Raul::Path& path() const { return _path; }
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);
}
diff --git a/src/server/GraphImpl.hpp b/src/server/GraphImpl.hpp
index 8c6e3711..85d4d940 100644
--- a/src/server/GraphImpl.hpp
+++ b/src/server/GraphImpl.hpp
@@ -59,8 +59,6 @@ public:
virtual ~GraphImpl();
- virtual Node::GraphType graph_type() const { return Node::GraphType::GRAPH; }
-
BlockImpl* duplicate(Engine& engine,
const Raul::Symbol& symbol,
GraphImpl* parent);
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp
index 0e68360e..6bf52ef2 100644
--- a/src/server/InputPort.cpp
+++ b/src/server/InputPort.cpp
@@ -49,7 +49,7 @@ InputPort::InputPort(BufferFactory& bufs,
{
const Ingen::URIs& uris = bufs.uris();
- if (parent->graph_type() != Node::GraphType::GRAPH) {
+ if (!dynamic_cast<GraphImpl*>(parent)) {
add_property(uris.rdf_type, uris.lv2_InputPort.urid);
}
}
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp
index 7b84be17..183b4c25 100644
--- a/src/server/PortImpl.cpp
+++ b/src/server/PortImpl.cpp
@@ -23,6 +23,7 @@
#include "Buffer.hpp"
#include "BufferFactory.hpp"
#include "Engine.hpp"
+#include "GraphImpl.hpp"
#include "PortImpl.hpp"
#include "PortType.hpp"
#include "ThreadManager.hpp"
@@ -97,7 +98,7 @@ PortImpl::PortImpl(BufferFactory& bufs,
}
if (is_output) {
- if (_parent->graph_type() != Node::GraphType::GRAPH) {
+ if (!dynamic_cast<GraphImpl*>(_parent)) {
add_property(bufs.uris().rdf_type, bufs.uris().lv2_OutputPort.urid);
}
}
diff --git a/src/server/PortImpl.hpp b/src/server/PortImpl.hpp
index aac31fc8..919db3a0 100644
--- a/src/server/PortImpl.hpp
+++ b/src/server/PortImpl.hpp
@@ -99,8 +99,6 @@ public:
~PortImpl();
- virtual GraphType graph_type() const { return GraphType::PORT; }
-
BlockImpl* parent() const { return _parent; }
const Raul::Path& path() const { return _path; }
const Raul::Symbol& symbol() const { return _symbol; }