Improve readability

This commit is contained in:
Robert Haschke 2022-01-05 11:40:26 +01:00
parent b2c116edab
commit 7af3d8ebd7

View File

@ -260,7 +260,7 @@ void ContainerBasePrivate::copyState(Interface::iterator external, const Interfa
auto internals{ externalToInternalMap().equal_range(&*external) }; auto internals{ externalToInternalMap().equal_range(&*external) };
for (auto& i = internals.first; i != internals.second; ++i) { for (auto& i = internals.first; i != internals.second; ++i) {
// TODO: Not only update status, but full priority! // TODO: Not only update status, but full priority!
setStatus<dir>(i->second, external->priority().status()); setStatus<dir>(i->get<INTERNAL>(), external->priority().status());
} }
return; return;
} }
@ -690,9 +690,8 @@ bool SerialContainer::canCompute() const {
void SerialContainer::compute() { void SerialContainer::compute() {
for (const auto& stage : pimpl()->children()) { for (const auto& stage : pimpl()->children()) {
if (!stage->pimpl()->canCompute()) if (stage->pimpl()->canCompute())
continue; stage->pimpl()->runCompute();
stage->pimpl()->runCompute();
} }
} }