diff options
author | Lars Knoll <lars.knoll@digia.com> | 2014-11-11 16:07:54 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-11-12 12:13:54 +0100 |
commit | 9bad6eea0f30f6a6c1878c2773dc39071cb41584 (patch) | |
tree | 2306235d1db4f4abce697de2564a935229517bfd /src/qml/jsruntime/qv4arraydata.cpp | |
parent | 345a5ee67bf80f7c18869fe080bf7dd7cf4a0d90 (diff) |
Change signature or runtime methods to take an engine pointer
This makes a lot more sense in the long term and is the
more maintainable solution, once the GC starts moving
objects around in memory
Change-Id: I8f327c0f5b5b0af38c5fe1a217852ee8c4a5c2fc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4arraydata.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4arraydata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4arraydata.cpp b/src/qml/jsruntime/qv4arraydata.cpp index d7af678402..20e8e8a053 100644 --- a/src/qml/jsruntime/qv4arraydata.cpp +++ b/src/qml/jsruntime/qv4arraydata.cpp @@ -675,7 +675,7 @@ bool ArrayElementLessThan::operator()(Value v1, Value v2) const callData->thisObject = Primitive::undefinedValue(); callData->args[0] = v1; callData->args[1] = v2; - result = Runtime::callValue(m_context, m_comparefn, callData); + result = Runtime::callValue(scope.engine, m_comparefn, callData); return result->toNumber() < 0; } |