From 4564d719745848386a0662a44a47a8400c799560 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 01:41:54 -0400 Subject: Use a consistent style for FOREACH macros --- src/server/internals/Controller.cpp | 2 +- src/server/internals/Note.cpp | 2 +- src/server/internals/Trigger.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/internals') 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(); 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(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_FOREACH(seq, ev) { + LV2_ATOM_SEQUENCE_FOREACH (seq, ev) { const auto* buf = static_cast(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(LV2_ATOM_BODY_CONST(&ev->body)); -- cgit v1.2.1