diff options
author | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2015-08-31 21:07:04 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@theqtcompany.com> | 2015-09-16 06:56:56 +0000 |
commit | 09c2013bdc5c0cac1704441056c33fdd1f867531 (patch) | |
tree | 1feedaab073c31a3070b74b32c377563f8a30491 /src/qml/jsruntime/qv4argumentsobject.cpp | |
parent | e774b9a97251b2657f6310ac6a034b45c70815ef (diff) |
Adapt to the new QV4::MemberData API
The size of the allocation can not change to an exact size'd alloc()
can be used here.
Change-Id: I479997efe8af15932d424019237683d89e945ed9
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4argumentsobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4argumentsobject.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4argumentsobject.cpp b/src/qml/jsruntime/qv4argumentsobject.cpp index ef2c362da9..e18aadbb8d 100644 --- a/src/qml/jsruntime/qv4argumentsobject.cpp +++ b/src/qml/jsruntime/qv4argumentsobject.cpp @@ -84,8 +84,7 @@ void ArgumentsObject::fullyCreate() Scope scope(engine()); Scoped<MemberData> md(scope, d()->mappedArguments); - if (!md || md->size() < numAccessors) - d()->mappedArguments = md->reallocate(engine(), d()->mappedArguments, numAccessors); + d()->mappedArguments = md->allocate(engine(), numAccessors); for (uint i = 0; i < numAccessors; ++i) { mappedArguments()->data[i] = context()->callData->args[i]; arraySet(i, context()->engine->argumentsAccessors + i, Attr_Accessor); |