Skip to content
Snippets Groups Projects
Commit 1e49d12c authored by vincent  lorrain's avatar vincent lorrain
Browse files

fix loop

parent 87c5c5bf
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ using namespace Aidge; ...@@ -6,7 +6,7 @@ using namespace Aidge;
GraphFsmInterpreter::GraphFsmInterpreter(const std::string graphMatchExpr,std::vector<std::shared_ptr<ConditionalInterpreter>>&nodesCondition):mParser(graphMatchExpr){ GraphFsmInterpreter::GraphFsmInterpreter(const std::string graphMatchExpr,std::vector<std::shared_ptr<ConditionalInterpreter>>&nodesCondition):mParser(graphMatchExpr){
mActGroupe = 0; mActGroupe = 0;
for (const auto obj : nodesCondition) { for (const auto &obj : nodesCondition) {
if(mNodesCondition.find(obj->getKey()) ==mNodesCondition.end()){ if(mNodesCondition.find(obj->getKey()) ==mNodesCondition.end()){
mNodesCondition[obj->getKey()] = obj; mNodesCondition[obj->getKey()] = obj;
}else{ }else{
......
...@@ -7,7 +7,7 @@ void GraphRegex::setKeyFromGraph(std::shared_ptr<GraphView> ref){ ...@@ -7,7 +7,7 @@ void GraphRegex::setKeyFromGraph(std::shared_ptr<GraphView> ref){
for (const NodePtr& node : ref->getNodes()) { for (const NodePtr& node : ref->getNodes()) {
std::string type = node->type(); std::string type = node->type();
bool isIn = false; bool isIn = false;
for(const auto test:mAllTest){ for(const auto &test:mAllTest){
if(test->getKey() == type){ if(test->getKey() == type){
isIn = true; isIn = true;
break; break;
......
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