QOCICols: fix warning for -Wdangling-reference
.. by playing it safe and taking the QVariant by copy Change-Id: I24e0507a912388b7fb17e838a22e8d4c449bcf5b Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit d4f2a5aa401c14dd8dc122bbf25fce9cd7f41cba) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit 50c49a6979ccf7096bb1b7d8a93d0c495ff12ec1)
This commit is contained in:
parent
be7fb67cb5
commit
6bb5130c38
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user