C++: Remove unneeded null validation

addNestedType should never accept null scope.

Change-Id: I6e4a86d0c7595af11079915faffdd8d213e92bd2
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-05-28 05:50:24 +03:00
committed by Orgad Shaneh
parent 07f8c474be
commit 4a8a7f22b4

View File

@@ -1641,7 +1641,7 @@ void LookupScopePrivate::addUsing(LookupScope *u)
void LookupScopePrivate::addNestedType(const Name *alias, LookupScope *e)
{
_nestedScopes[alias] = e ? e->d : 0;
_nestedScopes[alias] = e->d;
}
LookupScope *LookupScopePrivate::findOrCreateType(