forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.8'
Conflicts: tests/unit/unittest/unittest.pro Change-Id: I4f0ab05f96ee60900a3a35fad4c7331238367593
This commit is contained in:
@@ -366,9 +366,9 @@ void Parser::addSymbol(const ParserTreeItem::Ptr &item, const CPlusPlus::Symbol
|
||||
if (itemAdd.isNull())
|
||||
itemAdd = ParserTreeItem::Ptr(new ParserTreeItem());
|
||||
|
||||
// locations are 1-based in Symbol, start with 0 for the editor
|
||||
// locations have 1-based column in Symbol, use the same here.
|
||||
SymbolLocation location(QString::fromUtf8(symbol->fileName() , symbol->fileNameLength()),
|
||||
symbol->line(), symbol->column() - 1);
|
||||
symbol->line(), symbol->column());
|
||||
itemAdd->addSymbolLocation(location);
|
||||
|
||||
// prevent showing a content of the functions
|
||||
|
||||
Reference in New Issue
Block a user