Merge pull request #671 from Dmitry-Me/omitUnneededActions4

Omit unneded action
This commit is contained in:
orbitcowboy 2015-09-04 15:38:46 +02:00
commit 267e0b7104
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();