aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-06-22 00:09:24 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-06-22 21:54:09 +0200
commit522c91f41f857bf2b52881d0bea2e07468516a42 (patch)
treec2ed837e615e6495723abd5dce0b0dba681d8b99 /src/imports
parent4af39f1d8e2371ea5d913493b23eabffc1fb22c6 (diff)
Remove context parameter from Manged::put.
Change-Id: Ib99e726ffbb20463d45a8444b4fbdfe32cd6dbef Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/localstorage/plugin.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/imports/localstorage/plugin.cpp b/src/imports/localstorage/plugin.cpp
index 131de2b7bb..9357b5a43c 100644
--- a/src/imports/localstorage/plugin.cpp
+++ b/src/imports/localstorage/plugin.cpp
@@ -65,7 +65,7 @@ using namespace QV4;
#define V4THROW_SQL(error, desc) { \
Value v = Value::fromString(ctx, desc); \
Object *ex = ctx->engine->newErrorObject(v); \
- ex->put(ctx, ctx->engine->newIdentifier(QStringLiteral("code")), Value::fromInt32(error)); \
+ ex->put(ctx->engine->newIdentifier(QStringLiteral("code")), Value::fromInt32(error)); \
ctx->throwError(Value::fromObject(ex)); \
}
@@ -201,9 +201,9 @@ static Value qmlsqldatabase_rows_index(QQmlSqlDatabaseWrapper *r, ExecutionEngin
for (int ii = 0; ii < record.count(); ++ii) {
QVariant v = record.value(ii);
if (v.isNull()) {
- row->put(v4->current, v4->newIdentifier(record.fieldName(ii)), Value::nullValue());
+ row->put(v4->newIdentifier(record.fieldName(ii)), Value::nullValue());
} else {
- row->put(v4->current, v4->newIdentifier(record.fieldName(ii)), v8->fromVariant(v));
+ row->put(v4->newIdentifier(record.fieldName(ii)), v8->fromVariant(v));
}
}
if (hasProperty)
@@ -294,9 +294,9 @@ static Value qmlsqldatabase_executeSql(SimpleCallContext *ctx)
Object *resultObject = ctx->engine->newObject();
result = Value::fromObject(resultObject);
// XXX optimize
- resultObject->put(ctx, ctx->engine->newIdentifier("rowsAffected"), Value::fromInt32(query.numRowsAffected()));
- resultObject->put(ctx, ctx->engine->newIdentifier("insertId"), engine->toString(query.lastInsertId().toString()));
- resultObject->put(ctx, ctx->engine->newIdentifier("rows"), Value::fromObject(rows));
+ resultObject->put(ctx->engine->newIdentifier("rowsAffected"), Value::fromInt32(query.numRowsAffected()));
+ resultObject->put(ctx->engine->newIdentifier("insertId"), engine->toString(query.lastInsertId().toString()));
+ resultObject->put(ctx->engine->newIdentifier("rows"), Value::fromObject(rows));
} else {
err = true;
}