Commit ff54bc0b authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Thomas Hartmann

QmlDesigner: Remove using namespace QmlJS::AST from ChangePropertyVisitor

Change-Id: Ife1542a61abbd1b323ce1fa46854e95de252f2ab
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 54a10d2a
......@@ -37,7 +37,7 @@ using namespace QmlJS::AST;
using namespace QmlDesigner;
using namespace QmlDesigner::Internal;
ChangePropertyVisitor::ChangePropertyVisitor(TextModifier &modifier,
ChangePropertyVisitor::ChangePropertyVisitor(QmlDesigner::TextModifier &modifier,
quint32 parentLocation,
const QString &name,
const QString &value,
......@@ -50,7 +50,7 @@ ChangePropertyVisitor::ChangePropertyVisitor(TextModifier &modifier,
{
}
bool ChangePropertyVisitor::visit(UiObjectDefinition *ast)
bool ChangePropertyVisitor::visit(QmlJS::AST::UiObjectDefinition *ast)
{
if (didRewriting())
return false;
......@@ -66,7 +66,7 @@ bool ChangePropertyVisitor::visit(UiObjectDefinition *ast)
return !didRewriting();
}
bool ChangePropertyVisitor::visit(UiObjectBinding *ast)
bool ChangePropertyVisitor::visit(QmlJS::AST::UiObjectBinding *ast)
{
if (didRewriting())
return false;
......@@ -160,7 +160,7 @@ void ChangePropertyVisitor::replaceMemberValue(UiObjectMember *propertyMember, b
}
if (needsSemicolon)
replacement += ';';
replacement += QChar::fromLatin1(';');
replace(startOffset, endOffset - startOffset, replacement);
setDidRewriting(true);
......@@ -192,7 +192,7 @@ bool ChangePropertyVisitor::nextMemberOnSameLine(UiObjectMemberList *members)
}
// FIXME: duplicate code in the QmlJS::Rewriter class, remove this
void ChangePropertyVisitor::insertIntoArray(UiArrayBinding *ast)
void ChangePropertyVisitor::insertIntoArray(QmlJS::AST::UiArrayBinding *ast)
{
if (!ast)
return;
......
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