diff options
author | David Robillard <d@drobilla.net> | 2024-10-06 16:53:29 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-11 19:37:24 -0400 |
commit | 9009631bdf6d1142a13335ececbc1f78daf3fdf0 (patch) | |
tree | 00df6e97d58038d6321e377051ba4b67baf2f5d4 /src/server/events | |
parent | 3848b713426fa9bef1002048950c1b664cbb7350 (diff) | |
download | ingen-9009631bdf6d1142a13335ececbc1f78daf3fdf0.tar.gz ingen-9009631bdf6d1142a13335ececbc1f78daf3fdf0.tar.bz2 ingen-9009631bdf6d1142a13335ececbc1f78daf3fdf0.zip |
Simplify PortType
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/CreatePort.cpp | 2 | ||||
-rw-r--r-- | src/server/events/CreatePort.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/server/events/CreatePort.cpp b/src/server/events/CreatePort.cpp index 4c054fd9..a4dbbf3f 100644 --- a/src/server/events/CreatePort.cpp +++ b/src/server/events/CreatePort.cpp @@ -23,6 +23,7 @@ #include "Engine.hpp" #include "GraphImpl.hpp" #include "PortImpl.hpp" +#include "PortType.hpp" #include "ingen/Atom.hpp" #include "ingen/Forge.hpp" @@ -55,7 +56,6 @@ CreatePort::CreatePort(Engine& engine, const Properties& properties) : Event(engine, client, id, timestamp) , _path(std::move(path)) - , _port_type(PortType::UNKNOWN) , _properties(properties) { const ingen::URIs& uris = _engine.world().uris(); diff --git a/src/server/events/CreatePort.hpp b/src/server/events/CreatePort.hpp index 6d3e9ca2..acf81dd1 100644 --- a/src/server/events/CreatePort.hpp +++ b/src/server/events/CreatePort.hpp @@ -72,7 +72,7 @@ private: }; raul::Path _path; - PortType _port_type; + PortType _port_type{PortType::UNKNOWN}; LV2_URID _buf_type{0}; GraphImpl* _graph{nullptr}; DuplexPort* _graph_port{nullptr}; |