Skip to content
Snippets Groups Projects
Commit eebb138d authored by Christian Kamm's avatar Christian Kamm Committed by Bill King
Browse files

Fix compilation of tests/tools/qml-ast2dot.


Change-Id: I192c8f218371bd45c5bc2ae2cbb1b4464b7f0956
Reviewed-by: default avatarBill King <bill.king@nokia.com>
parent ba23e21d
No related branches found
No related tags found
No related merge requests found
...@@ -338,9 +338,9 @@ int main(int argc, char *argv[]) ...@@ -338,9 +338,9 @@ int main(int argc, char *argv[])
const QByteArray source = file.readAll(); const QByteArray source = file.readAll();
file.close(); file.close();
Document::Ptr doc = Document::create(fileName); Document::Ptr doc = Document::create(fileName, Document::QmlLanguage);
doc->setSource(source); doc->setSource(source);
doc->parseQml(); doc->parse();
foreach (const DiagnosticMessage &m, doc->diagnosticMessages()) { foreach (const DiagnosticMessage &m, doc->diagnosticMessages()) {
ostream *os; ostream *os;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment