forked from qt-creator/qt-creator
Preprocessing an empty expression is always empty
Fixes performance issue with typing opening parentheses. Reviewed-by: Roberto Raggi
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user