diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-03 07:30:00 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-12-03 07:30:00 (GMT) |
commit | cbe67bfd443bc4315c16245fda364ae0b2e7af51 (patch) | |
tree | 049aab9cef93e81f50086f049bf00b9e94155274 /src/declarative/qml/qmlbinding.cpp | |
parent | c901e373c8402d2542b708831deb4a5773624b1b (diff) | |
download | Qt-cbe67bfd443bc4315c16245fda364ae0b2e7af51.zip Qt-cbe67bfd443bc4315c16245fda364ae0b2e7af51.tar.gz Qt-cbe67bfd443bc4315c16245fda364ae0b2e7af51.tar.bz2 |
Optimization: Use QString, not QUrl in QmlBinding
Diffstat (limited to 'src/declarative/qml/qmlbinding.cpp')
-rw-r--r-- | src/declarative/qml/qmlbinding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlbinding.cpp b/src/declarative/qml/qmlbinding.cpp index f0bfd98..f9fc2d2 100644 --- a/src/declarative/qml/qmlbinding.cpp +++ b/src/declarative/qml/qmlbinding.cpp @@ -111,7 +111,7 @@ QmlBindingPrivate::QmlBindingPrivate() { } -QmlBinding::QmlBinding(void *data, QmlRefCount *rc, QObject *obj, QmlContext *ctxt, const QUrl &url, int lineNumber, QObject *parent) +QmlBinding::QmlBinding(void *data, QmlRefCount *rc, QObject *obj, QmlContext *ctxt, const QString &url, int lineNumber, QObject *parent) : QmlExpression(ctxt, data, rc, obj, url, lineNumber, *new QmlBindingPrivate) { setParent(parent); @@ -177,7 +177,7 @@ void QmlBinding::update(QmlMetaProperty::WriteFlags flags) if (isUndefined && !data->error.isValid()) { - QUrl url = data->url; + QUrl url = QUrl(data->url); int line = data->line; if (url.isEmpty()) url = QUrl(QLatin1String("<Unknown File>")); @@ -189,7 +189,7 @@ void QmlBinding::update(QmlMetaProperty::WriteFlags flags) } else if (!isUndefined && data->property.object() && !data->property.write(value, flags)) { - QUrl url = data->url; + QUrl url = QUrl(data->url); int line = data->line; if (url.isEmpty()) url = QUrl(QLatin1String("<Unknown File>")); |