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;
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{
......
......@@ -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;
......
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