aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4/qv4string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/v4/qv4string.cpp')
-rw-r--r--src/v4/qv4string.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/v4/qv4string.cpp b/src/v4/qv4string.cpp
index 1fd50f4eab..cb17547f07 100644
--- a/src/v4/qv4string.cpp
+++ b/src/v4/qv4string.cpp
@@ -107,7 +107,7 @@ Value String::get(Managed *m, ExecutionContext *ctx, String *name, bool *hasProp
return Value::fromInt32(that->_text.length());
}
PropertyAttributes attrs;
- Property *pd = ctx->engine->stringPrototype->__getPropertyDescriptor__(ctx, name, &attrs);
+ Property *pd = ctx->engine->stringPrototype->__getPropertyDescriptor__(name, &attrs);
if (!pd || attrs.isGeneric()) {
if (hasProperty)
*hasProperty = false;
@@ -127,7 +127,7 @@ Value String::getIndexed(Managed *m, ExecutionContext *ctx, uint index, bool *ha
return Value::fromString(ctx, that->toQString().mid(index, 1));
}
PropertyAttributes attrs;
- Property *pd = ctx->engine->stringPrototype->__getPropertyDescriptor__(ctx, index, &attrs);
+ Property *pd = ctx->engine->stringPrototype->__getPropertyDescriptor__(index, &attrs);
if (!pd || attrs.isGeneric()) {
if (hasProperty)
*hasProperty = false;