static v8::Handle<v8::Value> qmlsqldatabase_rows_index(QV8SqlDatabaseResource *r, uint32_t index)
{
- if (r->query.at() == index || r->query.seek(index)) {
+ if (r->query.at() == (int)index || r->query.seek(index)) {
QSqlRecord record = r->query.record();
// XXX optimize
if (!r || !r->list) return v8::Undefined();
QV8Engine *engine = V8ENGINE();
- if (index < r->list->count()) {
+ if ((int)index < r->list->count()) {
return Node::create(engine, r->list->at(index));
} else {
return v8::Undefined();
if (!r) return v8::Undefined();
QV8Engine *engine = V8ENGINE();
- if (index < r->d->children.count()) {
+ if ((int)index < r->d->children.count()) {
return Node::create(engine, r->d->children.at(index));
} else {
return v8::Undefined();
v8::Local<v8::Array> rv = v8::Array::New(count);
- for (int ii = 0; ii < count; ++ii)
+ for (uint ii = 0; ii < count; ++ii)
rv->Set(ii, v8::Number::New(ii));
return rv;