Commit 4a8a7f22 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

C++: Remove unneeded null validation

addNestedType should never accept null scope.

Change-Id: I6e4a86d0c7595af11079915faffdd8d213e92bd2
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 07f8c474
......@@ -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(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment