From 927950e984c3388924cf662278e2c32e67b48a7c Mon Sep 17 00:00:00 2001 From: Olivier BICHLER <olivier.bichler@cea.fr> Date: Fri, 8 Dec 2023 09:19:57 +0100 Subject: [PATCH] Fixed clang errors --- src/recipies/ExplicitConvert.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/recipies/ExplicitConvert.cpp b/src/recipies/ExplicitConvert.cpp index 59d30d16a..d25b133c3 100644 --- a/src/recipies/ExplicitConvert.cpp +++ b/src/recipies/ExplicitConvert.cpp @@ -26,14 +26,15 @@ void Aidge::explicitConvert(std::shared_ptr<GraphView> graph) { if (node->type() == Convert_Op::Type) { // Remove existing Convert operator, if not needed anymore - const auto& parent = node->inputs()[0]; + const auto parent = node->inputs()[0]; const auto& input = std::static_pointer_cast<OperatorTensor>(parent.first->getOperator())->getOutput(parent.second); if (input->dataType() == output->dataType() && (input->getImpl()->device() == device)) { // Add direct connection bypassing Convert node - for (auto child : node->outputs()[0]) { + const auto childs = node->outputs()[0]; + for (const auto& child : childs) { parent.first->addChild(child.first, parent.second, child.second); } -- GitLab