diff options
author | David Robillard <d@drobilla.net> | 2023-02-03 14:43:19 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-02-03 14:43:19 -0500 |
commit | ad4cec932249445160017cd2cf57917c1c2e2501 (patch) | |
tree | 0d09dd324f8f3f5411e567bbd1663decce1c6c04 /src/server/PortImpl.cpp | |
parent | f33d936ce99f9c175ed1171e93b0217258537bb1 (diff) | |
download | ingen-ad4cec932249445160017cd2cf57917c1c2e2501.tar.gz ingen-ad4cec932249445160017cd2cf57917c1c2e2501.tar.bz2 ingen-ad4cec932249445160017cd2cf57917c1c2e2501.zip |
Suppress/fix new warnings in clang-tidy 15
Diffstat (limited to 'src/server/PortImpl.cpp')
-rw-r--r-- | src/server/PortImpl.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp index 307d9b73..fa061640 100644 --- a/src/server/PortImpl.cpp +++ b/src/server/PortImpl.cpp @@ -289,9 +289,9 @@ PortImpl::set_voice_value(const RunContext& ctx, void PortImpl::update_set_state(const RunContext& ctx, uint32_t v) { - Voice& voice = _voices->at(v); - SetState& state = voice.set_state; - BufferRef buf = voice.buffer; + Voice& voice = _voices->at(v); + SetState& state = voice.set_state; + const BufferRef buf = voice.buffer; switch (state.state) { case SetState::State::SET: break; @@ -458,10 +458,10 @@ PortImpl::monitor(RunContext& ctx, bool send_now) return; } - Forge& forge = ctx.engine().world().forge(); - URIs& uris = ctx.engine().world().uris(); - LV2_URID key = 0; - float val = 0.0f; + const Forge& forge = ctx.engine().world().forge(); + const URIs& uris = ctx.engine().world().uris(); + LV2_URID key = 0; + float val = 0.0f; switch (_type.id()) { case PortType::UNKNOWN: break; |