ClassView: Compile with QT_NO_CAST_FROM_ASCII.

Change-Id: I407b2cf2e1d6efa627724e893ea425bb653cdc7a
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
Friedemann Kleint
2012-01-20 15:13:56 +01:00
parent b97b45a341
commit fd754e8231
3 changed files with 5 additions and 4 deletions

View File

@@ -320,7 +320,8 @@ void Parser::addSymbol(const ParserTreeItem::Ptr &item, const CPlusPlus::Symbol
itemAdd = ParserTreeItem::Ptr(new ParserTreeItem());
// locations are 1-based in Symbol, start with 0 for the editor
SymbolLocation location(symbol->fileName(), symbol->line(), symbol->column() - 1);
SymbolLocation location(QString::fromUtf8(symbol->fileName() , symbol->fileNameLength()),
symbol->line(), symbol->column() - 1);
itemAdd->addSymbolLocation(location);
// prevent showing a content of the functions