Skip to content
Snippets Groups Projects
Commit eeda15a5 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Fixed "use a reference" warning

parent a447853c
No related branches found
No related tags found
No related merge requests found
...@@ -243,10 +243,10 @@ void Aidge::SequentialScheduler::generateScheduling(bool verbose) { ...@@ -243,10 +243,10 @@ void Aidge::SequentialScheduler::generateScheduling(bool verbose) {
// its childs become consumers. // its childs become consumers.
bool isProducer = false; bool isProducer = false;
for (IOIndex_t outId = 0; outId < consumer->nbOutputs(); ++outId) { for (IOIndex_t outId = 0; outId < consumer->nbOutputs(); ++outId) {
for (const auto child : consumer->getChildren(outId)) { for (const auto& child : consumer->getChildren(outId)) {
if (child) { if (child) {
IOIndex_t inputIdx = 0; IOIndex_t inputIdx = 0;
for (const auto childParent : child->getParents()) { for (const auto& childParent : child->getParents()) {
if (childParent == consumer) { if (childParent == consumer) {
if (consumer->getOperator()->getNbProducedData(outId) > child->getOperator()->getNbConsumedData(inputIdx)) { if (consumer->getOperator()->getNbProducedData(outId) > child->getOperator()->getNbConsumedData(inputIdx)) {
isProducer = true; isProducer = true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment