From dae4ccf90df66635c5020a25777e93d17e614c53 Mon Sep 17 00:00:00 2001 From: Olivier BICHLER <olivier.bichler@cea.fr> Date: Fri, 8 Mar 2024 17:33:12 +0100 Subject: [PATCH] Added missing references --- src/scheduler/Scheduler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scheduler/Scheduler.cpp b/src/scheduler/Scheduler.cpp index 9ad0ac4f8..1fba2de64 100644 --- a/src/scheduler/Scheduler.cpp +++ b/src/scheduler/Scheduler.cpp @@ -316,7 +316,7 @@ void Aidge::SequentialScheduler::generateEarlyLateScheduling(std::vector<StaticS } // Node can be run the earliest just after its latest parent was run - for (const auto parent : node->getParents()) { + for (const auto& parent : node->getParents()) { // Find parent node latest scheduled position const auto it = std::find_if(schedule.rend() - elt, schedule.rend(), [parent](const auto& v) { return (v.node == parent); }); @@ -343,7 +343,7 @@ void Aidge::SequentialScheduler::generateEarlyLateScheduling(std::vector<StaticS } // Node can be run the latest just before its earliest child is run - for (const auto child : node->getChildren()) { + for (const auto& child : node->getChildren()) { // Find child node earliest scheduled position const auto it = std::find_if(schedule.begin() + elt + 1, schedule.end(), [child](const auto& v) { return (v.node == child); }); -- GitLab