CPlusPlus: Compile with QT_NO_CAST_FROM_ASCII

Change-Id: I1cfb413b7e88e91e9c4719a8a7b81c752c40767e
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
Orgad Shaneh
2012-11-27 22:07:47 +02:00
committed by Erik Verbruggen
parent ad7d3a9dbb
commit abc8567198
9 changed files with 37 additions and 33 deletions

View File

@@ -90,7 +90,7 @@ void NamePrettyPrinter::visit(const TemplateNameId *name)
else
_name += arg;
}
if (! _name.isEmpty() && _name.at(_name.length() - 1) == '>')
if (! _name.isEmpty() && _name.at(_name.length() - 1) == QLatin1Char('>'))
_name += QLatin1Char(' ');
_name += QLatin1Char('>');
}
@@ -263,7 +263,7 @@ void NamePrettyPrinter::visit(const SelectorNameId *name)
_name += QString::fromLatin1(id->chars(), id->size());
if (name->hasArguments() || name->nameCount() > 1)
_name += ':';
_name += QLatin1Char(':');
}
}
}