From bd355eb16f61c233bcbfb07ed021f25ddd513594 Mon Sep 17 00:00:00 2001 From: Roberto Raggi <roberto.raggi@nokia.com> Date: Mon, 23 Nov 2009 13:47:24 +0100 Subject: [PATCH] Got the same pointer. There is no reason to check for structural equivalence. --- src/shared/cplusplus/TypeMatcher.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/shared/cplusplus/TypeMatcher.cpp b/src/shared/cplusplus/TypeMatcher.cpp index a03ac98afeb..599ca60298f 100644 --- a/src/shared/cplusplus/TypeMatcher.cpp +++ b/src/shared/cplusplus/TypeMatcher.cpp @@ -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); } -- GitLab