diff options
author | David Robillard <d@drobilla.net> | 2019-12-08 19:13:33 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-12-08 20:59:06 +0100 |
commit | 14cd32a043552d39738ae0e84e4ef8ab93783296 (patch) | |
tree | 829845243215ed3fd96ff8fd6d6f324c35a60b3e /src/server/events/Connect.cpp | |
parent | 88dff1aabd3c81d1d81ac256e0061b98e0d24cec (diff) | |
download | ingen-14cd32a043552d39738ae0e84e4ef8ab93783296.tar.gz ingen-14cd32a043552d39738ae0e84e4ef8ab93783296.tar.bz2 ingen-14cd32a043552d39738ae0e84e4ef8ab93783296.zip |
Cleanup: Use "auto" to avoid repeating type names
Diffstat (limited to 'src/server/events/Connect.cpp')
-rw-r--r-- | src/server/events/Connect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/events/Connect.cpp b/src/server/events/Connect.cpp index 23a7d4b4..dda1821b 100644 --- a/src/server/events/Connect.cpp +++ b/src/server/events/Connect.cpp @@ -63,8 +63,8 @@ Connect::pre_process(PreProcessContext& ctx) return Event::pre_process_done(Status::NOT_FOUND, _msg.head); } - PortImpl* tail_output = dynamic_cast<PortImpl*>(tail); - _head = dynamic_cast<InputPort*>(head); + auto* tail_output = dynamic_cast<PortImpl*>(tail); + _head = dynamic_cast<InputPort*>(head); if (!tail_output || !_head) { return Event::pre_process_done(Status::BAD_REQUEST, _msg.head); } |