From 1e49d12c291638a5d4475606b37c02350da15101 Mon Sep 17 00:00:00 2001 From: vl241552 <vincent.lorrain@cea.fr> Date: Tue, 7 Nov 2023 16:20:18 +0000 Subject: [PATCH] fix loop --- src/graphRegex/GraphFsmInterpreter.cpp | 2 +- src/graphRegex/GraphRegex.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphRegex/GraphFsmInterpreter.cpp b/src/graphRegex/GraphFsmInterpreter.cpp index de2718264..03e864875 100644 --- a/src/graphRegex/GraphFsmInterpreter.cpp +++ b/src/graphRegex/GraphFsmInterpreter.cpp @@ -6,7 +6,7 @@ using namespace Aidge; GraphFsmInterpreter::GraphFsmInterpreter(const std::string graphMatchExpr,std::vector<std::shared_ptr<ConditionalInterpreter>>&nodesCondition):mParser(graphMatchExpr){ mActGroupe = 0; - for (const auto obj : nodesCondition) { + for (const auto &obj : nodesCondition) { if(mNodesCondition.find(obj->getKey()) ==mNodesCondition.end()){ mNodesCondition[obj->getKey()] = obj; }else{ diff --git a/src/graphRegex/GraphRegex.cpp b/src/graphRegex/GraphRegex.cpp index d8e45595d..ef0db8c88 100644 --- a/src/graphRegex/GraphRegex.cpp +++ b/src/graphRegex/GraphRegex.cpp @@ -7,7 +7,7 @@ void GraphRegex::setKeyFromGraph(std::shared_ptr<GraphView> ref){ for (const NodePtr& node : ref->getNodes()) { std::string type = node->type(); bool isIn = false; - for(const auto test:mAllTest){ + for(const auto &test:mAllTest){ if(test->getKey() == type){ isIn = true; break; -- GitLab