forked from qt-creator/qt-creator
Got the same pointer. There is no reason to check for structural equivalence.
This commit is contained in:
@@ -45,8 +45,11 @@ TypeMatcher::~TypeMatcher()
|
||||
|
||||
bool TypeMatcher::isEqualTo(const Name *name, const Name *otherName) const
|
||||
{
|
||||
if (! name || ! otherName)
|
||||
return name == otherName;
|
||||
if (name == otherName)
|
||||
return true;
|
||||
|
||||
else if (! name || ! otherName)
|
||||
return false;
|
||||
|
||||
return name->isEqualTo(otherName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user