diff options
author | Lars Knoll <[email protected]> | 2013-09-18 16:36:02 +0200 |
---|---|---|
committer | The Qt Project <[email protected]> | 2013-09-22 01:06:20 +0200 |
commit | df5edd28bc4258b89d9d5ffdddf837f339a17aad (patch) | |
tree | 2a5939d5e3c49928aadf43337832d3ef5a58df08 /src/qml/jsruntime/qv4managed.cpp | |
parent | 700ba1bcb39e082049c96fafdfaccfe5d83cd77e (diff) |
convert Managed::put() API to be GC safe
Change-Id: I09198ce372fa545372db389fac26828d21ad5731
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4managed.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4managed.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4managed.cpp b/src/qml/jsruntime/qv4managed.cpp index 776819a75f..c469293f5e 100644 --- a/src/qml/jsruntime/qv4managed.cpp +++ b/src/qml/jsruntime/qv4managed.cpp @@ -192,7 +192,7 @@ ReturnedValue Managed::getLookup(Managed *m, Lookup *) return 0; } -void Managed::setLookup(Managed *m, Lookup *, const Value &) +void Managed::setLookup(Managed *m, Lookup *, const ValueRef) { m->engine()->current->throwTypeError(); } @@ -211,3 +211,13 @@ ReturnedValue Managed::getIndexed(uint index, bool *hasProperty) { return vtbl->getIndexed(this, index, hasProperty); } + +void Managed::put(const StringRef name, const ValueRef value) +{ + vtbl->put(this, name, value); +} + +void Managed::setLookup(Lookup *l, const ValueRef v) +{ + vtbl->setLookup(this, l, v); +} |