From 31014fe3341ee0e9e833daa0efb1524afa32e2d6 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 4 Sep 2015 16:06:20 +0300 Subject: [PATCH] Omit unneded action --- lib/symboldatabase.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/symboldatabase.cpp b/lib/symboldatabase.cpp index 6dab4efe2..25eae4113 100644 --- a/lib/symboldatabase.cpp +++ b/lib/symboldatabase.cpp @@ -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();