aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmldom/qqmldomastcreator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmldom/qqmldomastcreator.cpp')
-rw-r--r--src/qmldom/qqmldomastcreator.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qmldom/qqmldomastcreator.cpp b/src/qmldom/qqmldomastcreator.cpp
index 3fec3d0211..4c951f2761 100644
--- a/src/qmldom/qqmldomastcreator.cpp
+++ b/src/qmldom/qqmldomastcreator.cpp
@@ -2813,14 +2813,12 @@ void QQmlDomAstCreator::endVisit(AST::BreakStatement *statement)
pushScriptElement(current);
}
-// note: thats for comma expressions
-bool QQmlDomAstCreator::visit(AST::Expression *)
+bool QQmlDomAstCreator::visit(AST::CommaExpression *)
{
return m_enableScriptExpressions;
}
-// note: thats for comma expressions
-void QQmlDomAstCreator::endVisit(AST::Expression *commaExpression)
+void QQmlDomAstCreator::endVisit(AST::CommaExpression *commaExpression)
{
if (!m_enableScriptExpressions)
return;