QmlJS: Compile with QT_NO_CAST_FROM_ASCII

Change-Id: I0c5654a978f47a4db5428936fd44633f21394830
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Thomas Hartmann <Thomas.Hartmann@digia.com>
This commit is contained in:
Orgad Shaneh
2012-11-27 20:20:02 +02:00
committed by Orgad Shaneh
parent 964c01a460
commit 5ea0937167
17 changed files with 416 additions and 409 deletions

View File

@@ -710,7 +710,7 @@ static bool checkTopLevelBindingForParentReference(ExpressionStatement *expStmt,
SourceLocation location = locationFromRange(expStmt->firstSourceLocation(), expStmt->lastSourceLocation());
QString stmtSource = source.mid(location.begin(), location.length);
if (stmtSource.contains(QRegExp("(^|\\W)parent\\.")))
if (stmtSource.contains(QRegExp(QLatin1String("(^|\\W)parent\\."))))
return true;
return false;
@@ -804,7 +804,7 @@ bool Check::visit(UiScriptBinding *ast)
return false;
}
if (id.isEmpty() || (!id.at(0).isLower() && id.at(0) != '_')) {
if (id.isEmpty() || (!id.at(0).isLower() && id.at(0) != QLatin1Char('_'))) {
addMessage(ErrInvalidId, loc);
return false;
}