From 249f697824275598c85a0ca8f618e6e558a75ade Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 12 Dec 2012 09:00:30 +0100 Subject: [PATCH] Small cleanup Change-Id: Ia25515e5f5e9af561c66589a2aa0c524167719ff Reviewed-by: Simon Hausmann --- qmljs_runtime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.7.4