diff options
author | Dennis Oberst <dennis.oberst@qt.io> | 2024-04-10 11:32:04 +0200 |
---|---|---|
committer | Dennis Oberst <dennis.oberst@qt.io> | 2024-04-11 04:35:06 +0200 |
commit | d4f2a5aa401c14dd8dc122bbf25fce9cd7f41cba (patch) | |
tree | a3a554d8d74fe9d25ea1c4d732836bdb52993a1a /src | |
parent | 2d19f09b577f72290328d90ba85145362676ea92 (diff) |
QOCICols: fix warning for -Wdangling-reference
.. by playing it safe and taking the QVariant by copy
Pick-to: 6.7 6.5
Change-Id: I24e0507a912388b7fb17e838a22e8d4c449bcf5b
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/sqldrivers/oci/qsql_oci.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sqldrivers/oci/qsql_oci.cpp b/src/plugins/sqldrivers/oci/qsql_oci.cpp index 68ec672734..24cb6c508d 100644 --- a/src/plugins/sqldrivers/oci/qsql_oci.cpp +++ b/src/plugins/sqldrivers/oci/qsql_oci.cpp @@ -1428,7 +1428,7 @@ bool QOCICols::execBatch(QOCIResultPrivate *d, QVariantList &boundValues, bool a // we may now populate column with data for (uint row = 0; row < col.recordCount; ++row) { - const QVariant &val = boundValues.at(i).toList().at(row); + const QVariant val = boundValues.at(i).toList().at(row); if (QSqlResultPrivate::isVariantNull(val) && !d->isOutValue(i)) { columns[i].indicators[row] = -1; |