From: Lars Knoll Date: Wed, 12 Dec 2012 08:00:30 +0000 (+0100) Subject: Small cleanup X-Git-Tag: upstream/5.2.1~669^2~659^2~715 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=249f697824275598c85a0ca8f618e6e558a75ade;p=platform%2Fupstream%2Fqtdeclarative.git Small cleanup Change-Id: Ia25515e5f5e9af561c66589a2aa0c524167719ff Reviewed-by: Simon Hausmann --- diff --git a/qmljs_runtime.cpp b/qmljs_runtime.cpp index a00ac6c..4c200b2 100644 --- a/qmljs_runtime.cpp +++ b/qmljs_runtime.cpp @@ -222,8 +222,8 @@ Value __qmljs_instanceof(Value left, Value right, ExecutionContext *ctx) Value __qmljs_in(Value left, Value right, ExecutionContext *ctx) { if (right.isObject()) { - Value s = __qmljs_to_string(left, ctx); - bool r = right.objectValue()->__hasProperty__(ctx, s.stringValue()); + String *s = left.toString(ctx); + bool r = right.objectValue()->__hasProperty__(ctx, s); return Value::fromBoolean(r); } else { return __qmljs_throw_type_error(ctx);