oops! update errorCount after the semantic pass.

This commit is contained in:
Roberto Raggi
2008-12-30 11:16:45 +01:00
parent 2377567f26
commit 702e078ace
@@ -85,8 +85,8 @@ public:
diag.errorCount = 0; // reset the error count.
TranslationUnit *unit = parse(source, TranslationUnit::ParseTranlationUnit);
QSharedPointer<Document> doc(new Document(unit));
doc->errorCount = diag.errorCount;
doc->check();
doc->errorCount = diag.errorCount;
return doc;
}