Commit b421d9c0 authored by mae's avatar mae
Browse files

Fix compile warning

parent 4caba7d6
......@@ -167,11 +167,12 @@ int DeclFromDef::match(const QList<CPlusPlus::AST *> &path)
int idx = 0;
for (; idx < path.size(); ++idx) {
AST *node = path.at(idx);
if (FunctionDefinitionAST *candidate = node->asFunctionDefinition())
if (FunctionDefinitionAST *candidate = node->asFunctionDefinition()) {
if (!funDef)
funDef = candidate;
else if (node->asClassSpecifier())
} else if (node->asClassSpecifier()) {
return -1;
}
}
if (!funDef || !funDef->symbol)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment