diff options
Diffstat (limited to 'src/sql/kernel/qsqlquery.cpp')
-rw-r--r-- | src/sql/kernel/qsqlquery.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sql/kernel/qsqlquery.cpp b/src/sql/kernel/qsqlquery.cpp index d729dbda6b..14a3dc4130 100644 --- a/src/sql/kernel/qsqlquery.cpp +++ b/src/sql/kernel/qsqlquery.cpp @@ -336,7 +336,7 @@ bool QSqlQuery::isNull(int field) const bool QSqlQuery::isNull(const QString &name) const { - int index = d->sqlResult->record().indexOf(name); + qsizetype index = d->sqlResult->record().indexOf(name); if (index > -1) return isNull(index); qWarning("QSqlQuery::isNull: unknown field name '%s'", qPrintable(name)); @@ -447,7 +447,7 @@ QVariant QSqlQuery::value(int index) const QVariant QSqlQuery::value(const QString& name) const { - int index = d->sqlResult->record().indexOf(name); + qsizetype index = d->sqlResult->record().indexOf(name); if (index > -1) return value(index); qWarning("QSqlQuery::value: unknown field name '%s'", qPrintable(name)); @@ -920,7 +920,7 @@ QSqlRecord QSqlQuery::record() const QSqlRecord rec = d->sqlResult->record(); if (isValid()) { - for (int i = 0; i < rec.count(); ++i) + for (qsizetype i = 0; i < rec.count(); ++i) rec.setValue(i, value(i)); } return rec; |