Omit unneded action

This commit is contained in:
Dmitry-Me 2015-09-04 16:06:20 +03:00
parent 1aa958d60c
commit 31014fe334
1 changed files with 2 additions and 1 deletions

View File

@ -1976,9 +1976,10 @@ const Token *Type::initBaseInfo(const Token *tok, const Token *tok1)
tok2 = tok2->next();
}
base.nameTok = tok2;
if (!tok2)
return nullptr;
base.nameTok = tok2;
// handle global namespace
if (tok2->str() == "::") {
tok2 = tok2->next();