forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
07f8c474be
commit
4a8a7f22b4
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user