diff options
author | David Robillard <d@drobilla.net> | 2017-12-25 15:26:48 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2017-12-25 16:26:13 -0500 |
commit | 15b3b0e9f8823752f80c7e597a70749813e61c79 (patch) | |
tree | 3f324c6e2a455be8b929456dadbf06520889d435 /src/server/BlockImpl.cpp | |
parent | d6a9571641bcb34acb3521feb08eea33195fd9ca (diff) | |
download | ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.gz ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.tar.bz2 ingen-15b3b0e9f8823752f80c7e597a70749813e61c79.zip |
Always use braces
Diffstat (limited to 'src/server/BlockImpl.cpp')
-rw-r--r-- | src/server/BlockImpl.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/server/BlockImpl.cpp b/src/server/BlockImpl.cpp index 36bf3e30..96ae0795 100644 --- a/src/server/BlockImpl.cpp +++ b/src/server/BlockImpl.cpp @@ -106,12 +106,15 @@ BlockImpl::prepare_poly(BufferFactory& bufs, uint32_t poly) { ThreadManager::assert_thread(THREAD_PRE_PROCESS); - if (!_polyphonic) + if (!_polyphonic) { poly = 1; + } - if (_ports) - for (uint32_t i = 0; i < _ports->size(); ++i) + if (_ports) { + for (uint32_t i = 0; i < _ports->size(); ++i) { _ports->at(i)->prepare_poly(bufs, poly); + } + } return true; } @@ -119,14 +122,17 @@ BlockImpl::prepare_poly(BufferFactory& bufs, uint32_t poly) bool BlockImpl::apply_poly(RunContext& context, uint32_t poly) { - if (!_polyphonic) + if (!_polyphonic) { poly = 1; + } _polyphony = poly; - if (_ports) - for (uint32_t i = 0; i < num_ports(); ++i) + if (_ports) { + for (uint32_t i = 0; i < num_ports(); ++i) { _ports->at(i)->apply_poly(context, poly); + } + } return true; } |