diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-08-21 18:19:01 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-22 09:01:01 +0200 |
commit | 2cc57f1e33cc4d739b1b76c605e6241fa0f134a8 (patch) | |
tree | f41497f77091e4aa6ddf1f6deea8d4ddd100b7b1 /src/qml/qml/qqmlbinding.cpp | |
parent | 18f26fb5be7dcf0de11098e70bb3c0fe40139b75 (diff) |
Trim trailing whitespace.
Change-Id: I3d268d3ce8d73c7287f51abe9a28c165cb75acb9
Reviewed-by: Chris Adams <christopher.adams@nokia.com>
Diffstat (limited to 'src/qml/qml/qqmlbinding.cpp')
-rw-r--r-- | src/qml/qml/qqmlbinding.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/qml/qml/qqmlbinding.cpp b/src/qml/qml/qqmlbinding.cpp index f5f0f49ddd..604080b857 100644 --- a/src/qml/qml/qqmlbinding.cpp +++ b/src/qml/qml/qqmlbinding.cpp @@ -177,7 +177,7 @@ QQmlBinding::QQmlBinding(const QString &str, QObject *obj, QQmlContextData *ctxt v8function = evalFunction(ctxt, obj, code, QString(), 0); } -QQmlBinding::QQmlBinding(const QString &str, bool isRewritten, QObject *obj, +QQmlBinding::QQmlBinding(const QString &str, bool isRewritten, QObject *obj, QQmlContextData *ctxt, const QString &url, quint16 lineNumber, quint16 columnNumber) : QQmlJavaScriptExpression(&QQmlBinding_jsvtable), QQmlAbstractBinding(Binding), @@ -200,10 +200,10 @@ QQmlBinding::QQmlBinding(const QString &str, bool isRewritten, QObject *obj, v8function = evalFunction(ctxt, obj, code, url, m_lineNumber); } -/*! - \internal +/*! + \internal - To avoid exposing v8 in the public API, functionPtr must be a pointer to a v8::Handle<v8::Function>. + To avoid exposing v8 in the public API, functionPtr must be a pointer to a v8::Handle<v8::Function>. For example: v8::Handle<v8::Function> function; new QQmlBinding(&function, scope, ctxt); @@ -275,7 +275,7 @@ void QQmlBinding::update(QQmlPropertyPrivate::WriteFlags flags) } else { QQmlEnginePrivate *ep = QQmlEnginePrivate::get(context()->engine); - ep->referenceScarceResources(); + ep->referenceScarceResources(); bool isUndefined = false; @@ -292,7 +292,7 @@ void QQmlBinding::update(QQmlPropertyPrivate::WriteFlags flags) this, result, isUndefined, flags); if (!watcher.wasDeleted()) { - + if (needsErrorLocationData) delayedError()->setErrorLocation(QUrl(m_url), m_lineNumber, m_columnNumber); @@ -304,7 +304,7 @@ void QQmlBinding::update(QQmlPropertyPrivate::WriteFlags flags) } - ep->dereferenceScarceResources(); + ep->dereferenceScarceResources(); } if (!watcher.wasDeleted()) @@ -385,7 +385,7 @@ void QQmlBinding::setEnabled(bool e, QQmlPropertyPrivate::WriteFlags flags) setEnabledFlag(e); setNotifyOnValueChanged(e); - if (e) + if (e) update(flags); } |