diff options
Diffstat (limited to 'tests/auto/qml/qqmlparser/tst_qqmlparser.cpp')
-rw-r--r-- | tests/auto/qml/qqmlparser/tst_qqmlparser.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp b/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp index ec55709d35..3d08ec3e16 100644 --- a/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp +++ b/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp @@ -75,15 +75,9 @@ using namespace QQmlJS; class Check: public AST::Visitor { - Engine *engine; QList<AST::Node *> nodeStack; public: - Check(Engine *engine) - : engine(engine) - { - } - void operator()(AST::Node *node) { AST::Node::accept(node, this); @@ -206,7 +200,7 @@ void tst_qqmlparser::qmlParser() else parser.parseProgram(); - check::Check chk(&engine); + check::Check chk; chk(parser.rootNode()); } #endif |