QmlJS: Stop doing significant work in constructors.

To avoid order-of-initialization problems.

Reviewed-by: Thomas Hartmann
This commit is contained in:
Christian Kamm
2011-05-06 13:31:30 +02:00
parent 6ea355add1
commit d05992d0fa
14 changed files with 47 additions and 46 deletions

View File

@@ -375,6 +375,7 @@ Check::Check(Document::Ptr doc, const Context *linkedContextNoScope)
| WarnCaseWithoutFlowControlEnd | ErrCheckTypeErrors)
, _lastValue(0)
{
_scopeBuilder.initializeRootScope();
}
Check::~Check()