From 831dba9fc1839e192015ba5a6b6e43f858601d97 Mon Sep 17 00:00:00 2001 From: Shawn Rutledge Date: Tue, 26 Jun 2018 09:06:10 +0200 Subject: qmlvisitor: deal with PatternElement::bindingIdentifer as QStringRef This also reverts commit 38e5f27de587e6c9cc3b2844af792289afcd2d07 and re-enables the build of the visitor. Change-Id: I4cb0a51d5019797d45370e959dd0fca5a3d23a74 Reviewed-by: Simon Hausmann Reviewed-by: Martin Smith --- src/qdoc/qmlvisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qdoc/qmlvisitor.cpp') diff --git a/src/qdoc/qmlvisitor.cpp b/src/qdoc/qmlvisitor.cpp index 17391ca20..d54378331 100644 --- a/src/qdoc/qmlvisitor.cpp +++ b/src/qdoc/qmlvisitor.cpp @@ -781,7 +781,7 @@ bool QmlDocVisitor::visit(QQmlJS::AST::FunctionDeclaration* fd) if (formals) { QQmlJS::AST::FormalParameterList* fpl = formals; do { - parameters.append(Parameter(QString(), QString(), fpl->element->bindingIdentifier)); + parameters.append(Parameter(QString(), QString(), fpl->element->bindingIdentifier.toString())); fpl = fpl->next; } while (fpl && fpl != formals); qmlMethod->setParameters(parameters); -- cgit v1.2.1