aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@live.com>2014-03-03 21:53:52 -0600
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-11 19:59:05 +0100
commitb9fbb7d9c8abe3003f44ba2eee235adc13c81898 (patch)
tree6ad1ee9d94cf7e4ede0cec61f858be74aa427e65 /src/qml/jsruntime
parent92392c936f91412a278a3006f7538de81c856a7b (diff)
Remove redundant QQmlBinding members.
This reduces the size of QQmlBinding by 12 bytes. Task-number: QTBUG-37134 Change-Id: Id55257edec8cee88d863374e8a96d7eebbeaf523 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Michael Brasser <michael.brasser@live.com>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r--src/qml/jsruntime/qv4qobjectwrapper.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp
index 531987f52d..004c3eb036 100644
--- a/src/qml/jsruntime/qv4qobjectwrapper.cpp
+++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp
@@ -53,6 +53,7 @@
#include <private/qqmlvaluetypewrapper_p.h>
#include <private/qqmlcontextwrapper_p.h>
#include <private/qqmllistwrapper_p.h>
+#include <private/qqmlbuiltinfunctions_p.h>
#include <private/qv8engine_p.h>
#include <private/qv4functionobject_p.h>
@@ -473,10 +474,10 @@ void QObjectWrapper::setProperty(QObject *object, ExecutionContext *ctx, QQmlPro
// binding assignment.
QQmlContextData *callingQmlContext = QV4::QmlContextWrapper::callingContext(ctx->engine);
- QV4::StackFrame frame = ctx->engine->currentStackFrame();
+ QV4::Scoped<QQmlBindingFunction> bindingFunction(scope, f);
+ bindingFunction->initBindingLocation();
- newBinding = new QQmlBinding(value, object, callingQmlContext, frame.source,
- qmlSourceCoordinate(frame.line), qmlSourceCoordinate(frame.column));
+ newBinding = new QQmlBinding(value, object, callingQmlContext);
newBinding->setTarget(object, *property, callingQmlContext);
}
}