diff options
author | David Robillard <d@drobilla.net> | 2022-08-18 01:41:54 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-18 01:41:54 -0400 |
commit | 4564d719745848386a0662a44a47a8400c799560 (patch) | |
tree | 2e17ed86462390a10425e910d23d96bea582c08c /src/server/internals | |
parent | 590f82cba0752f41226bbdbf352753cf336ec758 (diff) | |
download | ingen-4564d719745848386a0662a44a47a8400c799560.tar.gz ingen-4564d719745848386a0662a44a47a8400c799560.tar.bz2 ingen-4564d719745848386a0662a44a47a8400c799560.zip |
Use a consistent style for FOREACH macros
Diffstat (limited to 'src/server/internals')
-rw-r--r-- | src/server/internals/Controller.cpp | 2 | ||||
-rw-r--r-- | src/server/internals/Note.cpp | 2 | ||||
-rw-r--r-- | src/server/internals/Trigger.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/server/internals/Controller.cpp b/src/server/internals/Controller.cpp index d8445a8a..ccc6df01 100644 --- a/src/server/internals/Controller.cpp +++ b/src/server/internals/Controller.cpp @@ -124,7 +124,7 @@ ControllerNode::run(RunContext& ctx) auto* seq = midi_in->get<LV2_Atom_Sequence>(); const BufferRef midi_out = _midi_out_port->buffer(0); - LV2_ATOM_SEQUENCE_FOREACH(seq, ev) { + LV2_ATOM_SEQUENCE_FOREACH (seq, ev) { const auto* buf = static_cast<const uint8_t*>(LV2_ATOM_BODY_CONST(&ev->body)); if (ev->body.type == _midi_in_port->bufs().uris().midi_MidiEvent && ev->body.size >= 3 && diff --git a/src/server/internals/Note.cpp b/src/server/internals/Note.cpp index e67cd441..ea5019a8 100644 --- a/src/server/internals/Note.cpp +++ b/src/server/internals/Note.cpp @@ -178,7 +178,7 @@ NoteNode::run(RunContext& ctx) Buffer* const midi_in = _midi_in_port->buffer(0).get(); auto* seq = midi_in->get<LV2_Atom_Sequence>(); - LV2_ATOM_SEQUENCE_FOREACH(seq, ev) { + LV2_ATOM_SEQUENCE_FOREACH (seq, ev) { const auto* buf = static_cast<const uint8_t*>(LV2_ATOM_BODY_CONST(&ev->body)); diff --git a/src/server/internals/Trigger.cpp b/src/server/internals/Trigger.cpp index 19e320c9..89a970fc 100644 --- a/src/server/internals/Trigger.cpp +++ b/src/server/internals/Trigger.cpp @@ -123,7 +123,7 @@ TriggerNode::run(RunContext& ctx) // Initialise output to the empty sequence midi_out->prepare_write(ctx); - LV2_ATOM_SEQUENCE_FOREACH(seq, ev) { + LV2_ATOM_SEQUENCE_FOREACH (seq, ev) { const int64_t t = ev->time.frames; const auto* buf = static_cast<const uint8_t*>(LV2_ATOM_BODY_CONST(&ev->body)); |