From 40db24351b6a89a3fb30a4870afdf90a4b91663f Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 10 Oct 2013 16:17:28 +0200 Subject: Smaller cleanups Change-Id: I0a7eee96ef7c92ad4a3c5963010e3ac66fe6ed3a Reviewed-by: Simon Hausmann --- src/qml/jsruntime/qv4functionobject.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/qml/jsruntime/qv4functionobject.cpp') 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(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); } -- cgit v1.2.3