diff options
author | Lars Knoll <lars.knoll@digia.com> | 2012-12-12 09:00:30 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-12-12 09:10:21 +0100 |
commit | 249f697824275598c85a0ca8f618e6e558a75ade (patch) | |
tree | 8c4e3933a9643374cb83b030cad7df1abbce1c6a /qmljs_runtime.cpp | |
parent | 446bea86f5753bccd1772347aa1e753ddf2b44f8 (diff) |
Small cleanup
Change-Id: Ia25515e5f5e9af561c66589a2aa0c524167719ff
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'qmljs_runtime.cpp')
-rw-r--r-- | qmljs_runtime.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qmljs_runtime.cpp b/qmljs_runtime.cpp index a00ac6c3c6..4c200b251f 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); |