Commit 765aa56d authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Preprocessing an empty expression is always empty

Fixes performance issue with typing opening parentheses.

Reviewed-by: Roberto Raggi
parent 09380afe
......@@ -133,6 +133,9 @@ QString TypeOfExpression::preprocessedExpression(const QString &expression,
Snapshot documents,
Document::Ptr thisDocument) const
if (expression.trimmed().isEmpty())
return expression;
Environment env;
QSet<QString> processed;
processEnvironment(documents, thisDocument,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment