summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Oberst <[email protected]>2024-04-10 11:32:04 +0200
committerQt Cherry-pick Bot <[email protected]>2024-04-11 21:44:34 +0000
commit6bb5130c38338af8e22cbc54520f33d4c9dbf1f9 (patch)
tree93cedb752af5672cf79c9fb5ecaced52261ff1a4
parentbe7fb67cb54ff9270f5a7d4b1e5e9136fbb1c30a (diff)
QOCICols: fix warning for -Wdangling-reference
.. by playing it safe and taking the QVariant by copy Change-Id: I24e0507a912388b7fb17e838a22e8d4c449bcf5b Reviewed-by: Volker Hilsheimer <[email protected]> (cherry picked from commit d4f2a5aa401c14dd8dc122bbf25fce9cd7f41cba) Reviewed-by: Qt Cherry-pick Bot <[email protected]> (cherry picked from commit 50c49a6979ccf7096bb1b7d8a93d0c495ff12ec1)
-rw-r--r--src/plugins/sqldrivers/oci/qsql_oci.cpp2
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 8f66afdf45f..6d7a02b4f77 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;