forked from qt-creator/qt-creator
CppTools: Show function args in current document filter
Regression introduced by commit 190fb44.
Change-Id: Ibd47b6d316e5ae976fb448aad5062eb5887f10e6
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -94,7 +94,7 @@ struct CPPTOOLS_EXPORT ModelItemInfo
|
||||
: symbolScope + QLatin1String("::") + symbolName;
|
||||
}
|
||||
|
||||
void unqualifiedNameAndScope(const QString &defaultName, QString *name, QString *scope) const
|
||||
bool unqualifiedNameAndScope(const QString &defaultName, QString *name, QString *scope) const
|
||||
{
|
||||
*name = defaultName;
|
||||
*scope = symbolScope;
|
||||
@@ -103,7 +103,9 @@ struct CPPTOOLS_EXPORT ModelItemInfo
|
||||
if (colonColonPosition != -1) {
|
||||
*name = qualifiedName.mid(colonColonPosition + 2);
|
||||
*scope = qualifiedName.left(colonColonPosition);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static QString representDeclaration(const QString &name, const QString &type)
|
||||
|
||||
Reference in New Issue
Block a user