diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-16 05:28:48 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-16 05:28:48 (GMT) |
commit | a5e11573712fcf1c95696bed4ce4bfd04bc17e01 (patch) | |
tree | 9cb882a1404fb5bf44264e350c78285a959d9113 /src/declarative/qml/qmlcomponent.cpp | |
parent | d03ef52960576837f4454da0b3bf196d92ee558c (diff) | |
download | Qt-a5e11573712fcf1c95696bed4ce4bfd04bc17e01.zip Qt-a5e11573712fcf1c95696bed4ce4bfd04bc17e01.tar.gz Qt-a5e11573712fcf1c95696bed4ce4bfd04bc17e01.tar.bz2 |
Remove unnecessary global context management stuff
Diffstat (limited to 'src/declarative/qml/qmlcomponent.cpp')
-rw-r--r-- | src/declarative/qml/qmlcomponent.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp index 0e68f8a..c7d45fd 100644 --- a/src/declarative/qml/qmlcomponent.cpp +++ b/src/declarative/qml/qmlcomponent.cpp @@ -405,9 +405,10 @@ QString QmlComponent::errorsString() const QString ret; if(!isError()) return ret; - foreach(const QmlError &e, d->errors){ - ret += e.url().toString() + ":" + QString::number(e.line()) + " " - + e.description() + "\n"; + foreach(const QmlError &e, d->errors) { + ret += e.url().toString() + QLatin1String(":") + + QString::number(e.line()) + QLatin1String(" ") + + e.description() + QLatin1String("\n"); } return ret; } @@ -532,7 +533,6 @@ QObject *QmlComponent::beginCreate(QmlContext *context) static_cast<QmlContextPrivate*>(ctxt->d_ptr)->startLine = d->cc->bytecode.at(d->start - 1).line; static_cast<QmlContextPrivate*>(ctxt->d_ptr)->endLine = d->cc->bytecode.at(d->start - 1).createComponent.endLine; } - ctxt->activate(); QmlVME vme; QObject *rv = vme.run(ctxt, d->cc, d->start, d->count); @@ -540,8 +540,6 @@ QObject *QmlComponent::beginCreate(QmlContext *context) if (vme.isError()) d->errors = vme.errors(); - ctxt->deactivate(); - QmlEnginePrivate *ep = d->engine->d_func(); if (ep->rootComponent == this) { ep->rootComponent = 0; |