From 9b475d7f10c47ad7160e244e01e782079d375e0b Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 7 Jul 2015 16:51:02 +0200 Subject: [PATCH] QmlDesigner: Remove using namespace QmlJS::AST from ObjectLengthCalculator Change-Id: Iff5542a61abbd1b323ce1fa46854d95de252ffaa Reviewed-by: Tim Jenssen --- .../filemanager/objectlengthcalculator.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp b/src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp index 4880458750b..f605a77b10b 100644 --- a/src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp +++ b/src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp @@ -32,12 +32,10 @@ #include -using namespace QmlJS; using namespace QmlDesigner; -using namespace QmlJS::AST; ObjectLengthCalculator::ObjectLengthCalculator(): - m_doc(Document::create("", Dialect::Qml)) + m_doc(QmlJS::Document::create(QLatin1String(""), QmlJS::Dialect::Qml)) { } @@ -51,7 +49,7 @@ bool ObjectLengthCalculator::operator()(const QString &text, quint32 offset, if (!m_doc->parseQml()) return false; - Node::accept(m_doc->qmlProgram(), this); + QmlJS::AST::Node::accept(m_doc->qmlProgram(), this); if (m_length) { length = m_length; return true; @@ -60,7 +58,7 @@ bool ObjectLengthCalculator::operator()(const QString &text, quint32 offset, } } -bool ObjectLengthCalculator::visit(UiObjectBinding *ast) +bool ObjectLengthCalculator::visit(QmlJS::AST::UiObjectBinding *ast) { if (m_length > 0) return false; @@ -80,7 +78,7 @@ bool ObjectLengthCalculator::visit(UiObjectBinding *ast) } } -bool ObjectLengthCalculator::visit(UiObjectDefinition *ast) +bool ObjectLengthCalculator::visit(QmlJS::AST::UiObjectDefinition *ast) { if (m_length > 0) return false;