Commit 33ef82f4 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

QmlDesigner: Fix argument name



It shadows a member variable

Change-Id: Ibc5b993ef27798d504270091ca4762d2c121b278
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 28ba4108
......@@ -48,14 +48,14 @@ AddArrayMemberVisitor::AddArrayMemberVisitor(QmlDesigner::TextModifier &modifier
{
}
void AddArrayMemberVisitor::findArrayBindingAndInsert(const QString &m_propertyName, UiObjectMemberList *ast)
void AddArrayMemberVisitor::findArrayBindingAndInsert(const QString &propertyName, UiObjectMemberList *ast)
{
for (UiObjectMemberList *iter = ast; iter; iter = iter->next) {
if (UiArrayBinding *arrayBinding = cast<UiArrayBinding*>(iter->member)) {
if (toString(arrayBinding->qualifiedId) == m_propertyName)
if (toString(arrayBinding->qualifiedId) == propertyName)
insertInto(arrayBinding);
} else if (UiObjectBinding *objectBinding = cast<UiObjectBinding*>(iter->member)) {
if (toString(objectBinding->qualifiedId) == m_propertyName && willConvertObjectBindingIntoArrayBinding())
if (toString(objectBinding->qualifiedId) == propertyName && willConvertObjectBindingIntoArrayBinding())
convertAndAdd(objectBinding);
}
}
......
......@@ -54,7 +54,7 @@ protected:
virtual bool visit(QmlJS::AST::UiObjectDefinition *ast);
private:
void findArrayBindingAndInsert(const QString &m_propertyName, QmlJS::AST::UiObjectMemberList *ast);
void findArrayBindingAndInsert(const QString &propertyName, QmlJS::AST::UiObjectMemberList *ast);
void insertInto(QmlJS::AST::UiArrayBinding *arrayBinding);
void convertAndAdd(QmlJS::AST::UiObjectBinding *objectBinding);
......
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