summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlvme.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-12-03 07:30:00 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-12-03 07:30:00 (GMT)
commitcbe67bfd443bc4315c16245fda364ae0b2e7af51 (patch)
tree049aab9cef93e81f50086f049bf00b9e94155274 /src/declarative/qml/qmlvme.cpp
parentc901e373c8402d2542b708831deb4a5773624b1b (diff)
downloadQt-cbe67bfd443bc4315c16245fda364ae0b2e7af51.zip
Qt-cbe67bfd443bc4315c16245fda364ae0b2e7af51.tar.gz
Qt-cbe67bfd443bc4315c16245fda364ae0b2e7af51.tar.bz2
Optimization: Use QString, not QUrl in QmlBinding
Diffstat (limited to 'src/declarative/qml/qmlvme.cpp')
-rw-r--r--src/declarative/qml/qmlvme.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlvme.cpp b/src/declarative/qml/qmlvme.cpp
index 89ca1be..d080268 100644
--- a/src/declarative/qml/qmlvme.cpp
+++ b/src/declarative/qml/qmlvme.cpp
@@ -544,7 +544,7 @@ QObject *QmlVME::run(QmlVMEStack<QObject *> &stack, QmlContext *ctxt,
QmlBoundSignal *bs = new QmlBoundSignal(target, signal, target);
QmlExpression *expr =
new QmlExpression(ctxt, primitives.at(instr.storeSignal.value), target);
- expr->setSourceLocation(comp->url, instr.line);
+ expr->setSourceLocation(comp->name, instr.line);
bs->setExpression(expr);
}
break;
@@ -597,7 +597,7 @@ QObject *QmlVME::run(QmlVMEStack<QObject *> &stack, QmlContext *ctxt,
if (stack.count() == 1 && bindingSkipList.testBit(coreIndex))
break;
- QmlBinding *bind = new QmlBinding((void *)datas.at(instr.assignBinding.value).constData(), comp, context, ctxt, comp->url, instr.line, 0);
+ QmlBinding *bind = new QmlBinding((void *)datas.at(instr.assignBinding.value).constData(), comp, context, ctxt, comp->name, instr.line, 0);
bindValues.append(bind);
bind->m_mePtr = &bindValues.values[bindValues.count - 1];
bind->setTarget(mp);