diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-10-10 16:17:28 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-11 08:56:26 +0200 |
commit | 40db24351b6a89a3fb30a4870afdf90a4b91663f (patch) | |
tree | 2fa70623d615cef347c4ad3f9e8422455abc4aa3 /src/qml/jsruntime/qv4functionobject.cpp | |
parent | b0e83cdc1a3a80ecc26cb31ac046b6c743238d41 (diff) | |
download | qtdeclarative-40db24351b6a89a3fb30a4870afdf90a4b91663f.tar.gz |
Smaller cleanups
Change-Id: I0a7eee96ef7c92ad4a3c5963010e3ac66fe6ed3a
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4functionobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4functionobject.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/qml/jsruntime/qv4functionobject.cpp b/src/qml/jsruntime/qv4functionobject.cpp index 058c71f9f3..e67b3ef771 100644 --- a/src/qml/jsruntime/qv4functionobject.cpp +++ b/src/qml/jsruntime/qv4functionobject.cpp @@ -719,10 +719,8 @@ void BoundFunction::markObjects(Managed *that) { BoundFunction *o = static_cast<BoundFunction *>(that); o->target->mark(); - if (Managed *m = o->boundThis.asManaged()) - m->mark(); + o->boundThis.mark(); for (int i = 0; i < o->boundArgs.size(); ++i) - if (Managed *m = o->boundArgs.at(i).asManaged()) - m->mark(); + o->boundArgs.at(i).mark(); FunctionObject::markObjects(that); } |