summaryrefslogtreecommitdiff
path: root/src/declarative/qml/qdeclarativecontext.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-08-27 15:44:20 +1000
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-08-27 15:44:20 +1000
commit7f69818e7dcd5b029010e5f930abed519956a8ff (patch)
treec2c915ed0b34a2e37afea0150314bdcfbbc3bfcc /src/declarative/qml/qdeclarativecontext.cpp
parent8b7bc81738108d4a80bb07eaa9d6c366361ab297 (diff)
downloadqt4-tools-7f69818e7dcd5b029010e5f930abed519956a8ff.tar.gz
Cleanup
Diffstat (limited to 'src/declarative/qml/qdeclarativecontext.cpp')
-rw-r--r--src/declarative/qml/qdeclarativecontext.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/declarative/qml/qdeclarativecontext.cpp b/src/declarative/qml/qdeclarativecontext.cpp
index a3b16d9f97..de45a95271 100644
--- a/src/declarative/qml/qdeclarativecontext.cpp
+++ b/src/declarative/qml/qdeclarativecontext.cpp
@@ -660,14 +660,12 @@ void QDeclarativeContextData::addImportedScript(const QDeclarativeParser::Object
if (!engine)
return;
- Q_ASSERT(script.codes.count() == 1);
-
QDeclarativeEnginePrivate *enginePriv = QDeclarativeEnginePrivate::get(engine);
QScriptEngine *scriptEngine = QDeclarativeEnginePrivate::getScriptEngine(engine);
- const QString &code = script.codes.at(0);
- const QString &url = script.files.at(0);
- const QDeclarativeParser::Object::ScriptBlock::Pragmas &pragmas = script.pragmas.at(0);
+ const QString &code = script.code;
+ const QString &url = script.file;
+ const QDeclarativeParser::Object::ScriptBlock::Pragmas &pragmas = script.pragmas;
Q_ASSERT(!url.isEmpty());