forked from qt-creator/qt-creator
qmljsscopebuilder: avoid warning from clang
Change-Id: I7ea4b8cd971bee1368dec3ce92ef27bf45d4c88b Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -67,7 +67,7 @@ void ScopeBuilder::push(AST::Node *node)
|
||||
// JS signal handler scope
|
||||
if (UiScriptBinding *script = cast<UiScriptBinding *>(node)) {
|
||||
QString name;
|
||||
if (script->qualifiedId)
|
||||
if (script->qualifiedId) {
|
||||
name = script->qualifiedId->name.toString();
|
||||
if (!_scopeChain->qmlScopeObjects().isEmpty()
|
||||
&& name.startsWith(QLatin1String("on"))
|
||||
@@ -90,6 +90,7 @@ void ScopeBuilder::push(AST::Node *node)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// JS scopes
|
||||
switch (node->kind) {
|
||||
|
||||
Reference in New Issue
Block a user