Commit 10ed2c53 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Fixed hidden parameters.

parent 2ede9773
......@@ -75,9 +75,9 @@ SimpleToken BackwardsScanner::LA(int index) const
SimpleToken BackwardsScanner::operator[](int index) const
{ return const_cast<BackwardsScanner *>(this)->fetchToken(index); }
const SimpleToken &BackwardsScanner::fetchToken(int i)
const SimpleToken &BackwardsScanner::fetchToken(int tokenIndex)
{
while (_offset + i < 0) {
while (_offset + tokenIndex < 0) {
_block = _block.previous();
if (_blocksTokenized == _maxBlockCount || !_block.isValid()) {
++_offset;
......@@ -104,7 +104,7 @@ const SimpleToken &BackwardsScanner::fetchToken(int i)
}
}
return _tokens.at(_offset + i);
return _tokens.at(_offset + tokenIndex);
}
int BackwardsScanner::startToken() const
......
......@@ -72,7 +72,7 @@ public:
int size() const;
private:
const SimpleToken &fetchToken(int i);
const SimpleToken &fetchToken(int tokenIndex);
private:
TokenCache *_tokenCache;
......
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment