forked from qt-creator/qt-creator
ClassView: Compile with QT_NO_CAST_FROM_ASCII.
Change-Id: I407b2cf2e1d6efa627724e893ea425bb653cdc7a Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
This commit is contained in:
@@ -251,7 +251,7 @@ void Manager::onProjectListChanged()
|
|||||||
|
|
||||||
void Manager::onTaskStarted(const QString &type)
|
void Manager::onTaskStarted(const QString &type)
|
||||||
{
|
{
|
||||||
if (type != CppTools::Constants::TASK_INDEX)
|
if (type != QLatin1String(CppTools::Constants::TASK_INDEX))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// disable tree updates to speed up
|
// disable tree updates to speed up
|
||||||
@@ -260,7 +260,7 @@ void Manager::onTaskStarted(const QString &type)
|
|||||||
|
|
||||||
void Manager::onAllTasksFinished(const QString &type)
|
void Manager::onAllTasksFinished(const QString &type)
|
||||||
{
|
{
|
||||||
if (type != CppTools::Constants::TASK_INDEX)
|
if (type != QLatin1String(CppTools::Constants::TASK_INDEX))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// parsing is finished, enable tree updates
|
// parsing is finished, enable tree updates
|
||||||
|
|||||||
@@ -320,7 +320,8 @@ void Parser::addSymbol(const ParserTreeItem::Ptr &item, const CPlusPlus::Symbol
|
|||||||
itemAdd = ParserTreeItem::Ptr(new ParserTreeItem());
|
itemAdd = ParserTreeItem::Ptr(new ParserTreeItem());
|
||||||
|
|
||||||
// locations are 1-based in Symbol, start with 0 for the editor
|
// 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);
|
itemAdd->addSymbolLocation(location);
|
||||||
|
|
||||||
// prevent showing a content of the functions
|
// prevent showing a content of the functions
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ void ParserTreeItem::debugDump(int ident) const
|
|||||||
d->symbolInformations.constEnd();
|
d->symbolInformations.constEnd();
|
||||||
while(curHash != endHash) {
|
while(curHash != endHash) {
|
||||||
const SymbolInformation &inf = curHash.key();
|
const SymbolInformation &inf = curHash.key();
|
||||||
qDebug() << QString(2*ident, QChar(' ')) << inf.iconType() << inf.name() << inf.type()
|
qDebug() << QString(2*ident, QLatin1Char(' ')) << inf.iconType() << inf.name() << inf.type()
|
||||||
<< curHash.value().isNull();
|
<< curHash.value().isNull();
|
||||||
if (!curHash.value().isNull())
|
if (!curHash.value().isNull())
|
||||||
curHash.value()->debugDump(ident + 1);
|
curHash.value()->debugDump(ident + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user