diff options
author | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2015-07-07 16:51:02 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2015-07-14 11:02:23 +0000 |
commit | 9b475d7f10c47ad7160e244e01e782079d375e0b (patch) | |
tree | 36928afc42592a5a4a1791496b2e78da506f1fb4 /src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp | |
parent | f9a0f9abd9acb0f35287a357ee6e1dba3d4d72b9 (diff) |
QmlDesigner: Remove using namespace QmlJS::AST from ObjectLengthCalculator
Change-Id: Iff5542a61abbd1b323ce1fa46854d95de252ffaa
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
Diffstat (limited to 'src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp')
-rw-r--r-- | src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp b/src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp index 4880458750..f605a77b10 100644 --- a/src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp +++ b/src/plugins/qmldesigner/designercore/filemanager/objectlengthcalculator.cpp @@ -32,12 +32,10 @@ #include <qmljs/parser/qmljsast_p.h> -using namespace QmlJS; using namespace QmlDesigner; -using namespace QmlJS::AST; ObjectLengthCalculator::ObjectLengthCalculator(): - m_doc(Document::create("<internal>", Dialect::Qml)) + m_doc(QmlJS::Document::create(QLatin1String("<internal>"), 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; |