Fixed hidden parameters.

This commit is contained in:
Erik Verbruggen
2010-06-04 09:59:38 +02:00
parent 2ede9773bb
commit 10ed2c536e
3 changed files with 8 additions and 8 deletions

View File

@@ -138,16 +138,16 @@ void CppHoverHandler::showToolTip(TextEditor::ITextEditor *editor, const QPoint
}
}
static QString buildHelpId(Symbol *symbol, const Name *name)
static QString buildHelpId(Symbol *symbol, const Name *declarationName)
{
Scope *scope = 0;
if (symbol) {
scope = symbol->scope();
name = symbol->name();
declarationName = symbol->name();
}
if (! name)
if (! declarationName)
return QString();
Overview overview;
@@ -155,7 +155,7 @@ static QString buildHelpId(Symbol *symbol, const Name *name)
overview.setShowReturnTypes(false);
QStringList qualifiedNames;
qualifiedNames.prepend(overview.prettyName(name));
qualifiedNames.prepend(overview.prettyName(declarationName));
for (; scope; scope = scope->enclosingScope()) {
Symbol *owner = scope->owner();