diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2009-05-14 09:30:40 (GMT) |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2009-05-14 09:30:40 (GMT) |
commit | 96bf1dee730651afa4f763fd5d7d52e49921d214 (patch) | |
tree | 98fca338fb127b69ae9996fb355292fad890af48 /src/declarative/qml/qmlscriptparser.cpp | |
parent | e83bf531362a9626ad41b97dd3fbfa39d6665c85 (diff) | |
download | Qt-96bf1dee730651afa4f763fd5d7d52e49921d214.zip Qt-96bf1dee730651afa4f763fd5d7d52e49921d214.tar.gz Qt-96bf1dee730651afa4f763fd5d7d52e49921d214.tar.bz2 |
Protect the QML front-end using the namespace JavaScript.
Diffstat (limited to 'src/declarative/qml/qmlscriptparser.cpp')
-rw-r--r-- | src/declarative/qml/qmlscriptparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlscriptparser.cpp b/src/declarative/qml/qmlscriptparser.cpp index ff19d25..cd33624 100644 --- a/src/declarative/qml/qmlscriptparser.cpp +++ b/src/declarative/qml/qmlscriptparser.cpp @@ -632,7 +632,7 @@ bool QmlScriptParser::parse(const QByteArray &data, const QUrl &url) QTextStream stream(data, QIODevice::ReadOnly); const QString code = stream.readAll(); - JavaScriptParser parser; + Parser parser; JavaScriptEnginePrivate driver; NodePool nodePool(fileName, &driver); @@ -645,7 +645,7 @@ bool QmlScriptParser::parse(const QByteArray &data, const QUrl &url) if (! parser.parse(&driver) || !_errors.isEmpty()) { // Extract errors from the parser - foreach (const JavaScriptParser::DiagnosticMessage &m, parser.diagnosticMessages()) { + foreach (const Parser::DiagnosticMessage &m, parser.diagnosticMessages()) { if (m.isWarning()) continue; |