From 15b3b0e9f8823752f80c7e597a70749813e61c79 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 25 Dec 2017 15:26:48 -0500 Subject: Always use braces --- src/server/PortImpl.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/server/PortImpl.cpp') diff --git a/src/server/PortImpl.cpp b/src/server/PortImpl.cpp index a3abe825..e8486645 100644 --- a/src/server/PortImpl.cpp +++ b/src/server/PortImpl.cpp @@ -380,8 +380,9 @@ PortImpl::set_buffer_size(RunContext& context, BufferFactory& bufs, size_t size) { _buffer_size = size; - for (uint32_t v = 0; v < _poly; ++v) + for (uint32_t v = 0; v < _poly; ++v) { _voices->at(v).buffer->resize(size); + } connect_buffers(); } @@ -397,8 +398,9 @@ PortImpl::connect_buffers(SampleCount offset) void PortImpl::recycle_buffers() { - for (uint32_t v = 0; v < _poly; ++v) + for (uint32_t v = 0; v < _poly; ++v) { _voices->at(v).buffer = nullptr; + } } void @@ -548,8 +550,9 @@ PortImpl::pre_process(RunContext& context) clear_buffers(context); } - for (uint32_t v = 0; v < _poly; ++v) + for (uint32_t v = 0; v < _poly; ++v) { _voices->at(v).buffer->prepare_output_write(context); + } } void -- cgit v1.2.1