event_adder_impl: loop with a pre-computed value
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
872e6f7f9f
commit
c401a47ca7
|
@ -16,7 +16,8 @@ private:
|
||||||
public:
|
public:
|
||||||
EventAdderImpl(const unsigned int source_id, const accumulator::Pool pools[32]) {
|
EventAdderImpl(const unsigned int source_id, const accumulator::Pool pools[32]) {
|
||||||
this->source_id = source_id;
|
this->source_id = source_id;
|
||||||
for (unsigned int i = 0; i < pools.size(); i++) {
|
static constexpr const uint64_t pools_size{pools.size()};
|
||||||
|
for (unsigned int i = 0; i < pools_size; i++) {
|
||||||
this->pools[i] = pools[i];
|
this->pools[i] = pools[i];
|
||||||
}
|
}
|
||||||
this->pool = 0;
|
this->pool = 0;
|
||||||
|
|
Reference in New Issue