Update rsturtleitem.h

This commit is contained in:
Pooh 2017-11-14 14:34:22 +03:00 committed by GitHub
parent 5d6225ab98
commit 9aa6dd3f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,13 @@ class RsTurtleRegExpSearchRequestItem: public RsTurtleSearchRequestItem
RsRegularExpression::LinearizedExpression expr ; // Reg Exp in linearised mode
std::string GetKeywords() { return expr.GetStrings(); }
std::string GetKeywords()
{
RsRegularExpression::Expression *ex = RsRegularExpression::LinearizedExpression::toExpr(expr);
std::string exs = ex->toStdString();
delete ex;
return exs;
}
virtual RsTurtleSearchRequestItem *clone() const { return new RsTurtleRegExpSearchRequestItem(*this) ; }
virtual void performLocalSearch(std::list<TurtleFileInfo>&) const ;