diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-09-19 13:17:55 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-22 01:06:20 +0200 |
commit | 78b49cf8361b1462cc94a061916a15f0b98e27e3 (patch) | |
tree | 01ac33be8df5d1cf2801ed34275d22bff7934e62 /src/qml/jsruntime/qv4booleanobject.cpp | |
parent | a9bdc91cefabb3729d0240fce4c01a669be09dbf (diff) |
Convert the last methods in qv4object_p.h
Change-Id: I4fda83a0832760c277e629d4e658da718c0bf92b
Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4booleanobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4booleanobject.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4booleanobject.cpp b/src/qml/jsruntime/qv4booleanobject.cpp index d85f4294ce..44188e535c 100644 --- a/src/qml/jsruntime/qv4booleanobject.cpp +++ b/src/qml/jsruntime/qv4booleanobject.cpp @@ -53,8 +53,10 @@ BooleanCtor::BooleanCtor(ExecutionContext *scope) ReturnedValue BooleanCtor::construct(Managed *m, CallData *callData) { + Scope scope(m->engine()); bool n = callData->argc ? callData->args[0].toBoolean() : false; - return Encode(m->engine()->newBooleanObject(Value::fromBoolean(n))); + ScopedValue b(scope, QV4::Value::fromBoolean(n)); + return Encode(m->engine()->newBooleanObject(b)); } ReturnedValue BooleanCtor::call(Managed *, CallData *callData) |