Clarify code using temporary

This commit is contained in:
Dmitry-Me 2017-09-06 18:00:23 +03:00
parent df5757b2cf
commit 66524ef645
1 changed files with 3 additions and 2 deletions

View File

@ -1179,10 +1179,11 @@ void SymbolDatabase::createSymbolDatabaseSetFunctionPointers(bool firstPass)
if (func->type == Function::eConstructor && func->functionScope && func->functionScope->functionOf && func->arg) { if (func->type == Function::eConstructor && func->functionScope && func->functionScope->functionOf && func->arg) {
const Token * tok = func->arg->link()->next(); const Token * tok = func->arg->link()->next();
if (tok->str() == "noexcept") { if (tok->str() == "noexcept") {
if (!tok->linkAt(1) || !tok->linkAt(1)->next()) { const Token * closingParenTok = tok->linkAt(1);
if (!closingParenTok || !closingParenTok->next()) {
continue; continue;
} }
tok = tok->linkAt(1)->next(); tok = closingParenTok->next();
} }
if (tok->str() != ":") { if (tok->str() != ":") {
continue; continue;