diff options
author | Michael Brasser <michael.brasser@live.com> | 2014-03-03 21:53:52 -0600 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-11 19:59:05 +0100 |
commit | b9fbb7d9c8abe3003f44ba2eee235adc13c81898 (patch) | |
tree | 6ad1ee9d94cf7e4ede0cec61f858be74aa427e65 /src/qml/qml/qqmlvaluetypewrapper.cpp | |
parent | 92392c936f91412a278a3006f7538de81c856a7b (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/qml/qqmlvaluetypewrapper.cpp')
-rw-r--r-- | src/qml/qml/qqmlvaluetypewrapper.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/qml/qml/qqmlvaluetypewrapper.cpp b/src/qml/qml/qqmlvaluetypewrapper.cpp index 56da6819fe..9a87493e54 100644 --- a/src/qml/qml/qqmlvaluetypewrapper.cpp +++ b/src/qml/qml/qqmlvaluetypewrapper.cpp @@ -46,6 +46,7 @@ #include <private/qqmlbinding_p.h> #include <private/qqmlglobal_p.h> #include <private/qqmlcontextwrapper_p.h> +#include <private/qqmlbuiltinfunctions_p.h> #include <private/qv4engine_p.h> #include <private/qv4functionobject_p.h> @@ -380,10 +381,10 @@ void QmlValueTypeWrapper::put(Managed *m, const StringRef name, const ValueRef v cacheData.valueTypeCoreIndex = index; cacheData.valueTypePropType = p.userType(); - QV4::StackFrame frame = v4->currentStackFrame(); + QV4::Scoped<QQmlBindingFunction> bindingFunction(scope, f); + bindingFunction->initBindingLocation(); - newBinding = new QQmlBinding(value, reference->object, context, - frame.source, qmlSourceCoordinate(frame.line), qmlSourceCoordinate(frame.column)); + newBinding = new QQmlBinding(value, reference->object, context); newBinding->setTarget(reference->object, cacheData, context); } |