forked from qt-creator/qt-creator
Fix compile warning
This commit is contained in:
@@ -167,12 +167,13 @@ int DeclFromDef::match(const QList<CPlusPlus::AST *> &path)
|
|||||||
int idx = 0;
|
int idx = 0;
|
||||||
for (; idx < path.size(); ++idx) {
|
for (; idx < path.size(); ++idx) {
|
||||||
AST *node = path.at(idx);
|
AST *node = path.at(idx);
|
||||||
if (FunctionDefinitionAST *candidate = node->asFunctionDefinition())
|
if (FunctionDefinitionAST *candidate = node->asFunctionDefinition()) {
|
||||||
if (!funDef)
|
if (!funDef)
|
||||||
funDef = candidate;
|
funDef = candidate;
|
||||||
else if (node->asClassSpecifier())
|
} else if (node->asClassSpecifier()) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!funDef || !funDef->symbol)
|
if (!funDef || !funDef->symbol)
|
||||||
return -1;
|
return -1;
|
||||||
|
|||||||
Reference in New Issue
Block a user