forked from qt-creator/qt-creator
C++: Fix crash when deducing auto (with invalid ids)
Task-number: QTCREATORBUG-7801 Change-Id: I61436148ed1428a50a6840ba9109310a57dabaa4 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -88,7 +88,9 @@ static void path_helper(Symbol *symbol, QList<const Name *> *names)
|
||||
}
|
||||
}
|
||||
|
||||
static bool compareName(const Name *name, const Name *other)
|
||||
namespace CPlusPlus {
|
||||
|
||||
bool compareName(const Name *name, const Name *other)
|
||||
{
|
||||
if (name == other)
|
||||
return true;
|
||||
@@ -104,8 +106,6 @@ static bool compareName(const Name *name, const Name *other)
|
||||
return false;
|
||||
}
|
||||
|
||||
namespace CPlusPlus {
|
||||
|
||||
bool compareFullyQualifiedName(const QList<const Name *> &path, const QList<const Name *> &other)
|
||||
{
|
||||
if (path.length() != other.length())
|
||||
|
||||
Reference in New Issue
Block a user