diff --git a/src/graphRegex/GraphRegex.cpp b/src/graphRegex/GraphRegex.cpp index e25816cfac29cb6eb178cb63b05330be15526484..ca15ff8dec5ff5ebd4ea69141c6e286849162bb5 100644 --- a/src/graphRegex/GraphRegex.cpp +++ b/src/graphRegex/GraphRegex.cpp @@ -147,9 +147,7 @@ void GraphRegex::setNodeKey(const std::string key,std::function<bool(NodePtr)> f _majConditionalInterpreterLambda(); //we add the lambda as key by default - std::ostringstream oss; - oss << key << "($)==true"; - setNodeKey(key, oss.str()); + setNodeKey(key, key + "($)==true"); } void GraphRegex::_majConditionalInterpreterLambda(){