forked from qt-creator/qt-creator
QmlJS: Stop doing significant work in constructors.
To avoid order-of-initialization problems. Reviewed-by: Thomas Hartmann
This commit is contained in:
@@ -375,6 +375,7 @@ Check::Check(Document::Ptr doc, const Context *linkedContextNoScope)
|
||||
| WarnCaseWithoutFlowControlEnd | ErrCheckTypeErrors)
|
||||
, _lastValue(0)
|
||||
{
|
||||
_scopeBuilder.initializeRootScope();
|
||||
}
|
||||
|
||||
Check::~Check()
|
||||
|
Reference in New Issue
Block a user