forked from qt-creator/qt-creator
C++: Get rid of {Name,Type}::isEqualTo()
...since it's superseded by the class Matcher. For consistency, rename FullySpecifiedType::isEqualTo() to match(). Change-Id: I07640f9218d814e0350265de45f05929e5d595a9 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -163,7 +163,7 @@ void CppElementEvaluator::handleLookupItemMatch(const Snapshot &snapshot,
|
||||
const QString &type = Overview().prettyType(lookupItem.type(), QString());
|
||||
// special case for bug QTCREATORBUG-4780
|
||||
if (scope && scope->isFunction()
|
||||
&& lookupItem.type().isEqualTo(scope->asFunction()->returnType())) {
|
||||
&& lookupItem.type().match(scope->asFunction()->returnType())) {
|
||||
return;
|
||||
}
|
||||
m_element = QSharedPointer<CppElement>(new Unknown(type));
|
||||
|
||||
Reference in New Issue
Block a user