Skip to content

Commit cf7cf82

Browse files
committed
Fix gcc8 "writing to an object of with no trivial copy-assignment"
warning
1 parent efce881 commit cf7cf82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/oracle/ocispatial/qsql_ocispatial.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ bool QOCISpatialCols::execBatch( QOCISpatialResultPrivate *d, QVector<QVariant>
22072207
}
22082208

22092209
case SQLT_FLT:
2210-
memcpy( &( ( *list )[r] ), data + r * columns[i].maxLen, sizeof( double ) );
2210+
( *list )[r] = *reinterpret_cast<double *>( data + r * columns[i].maxLen );
22112211
break;
22122212

22132213
case SQLT_STR:

0 commit comments

Comments
 (0)