Skip to content

Commit

Permalink
Fix gcc8 "writing to an object of with no trivial copy-assignment"
Browse files Browse the repository at this point in the history
warning
  • Loading branch information
nyalldawson committed Apr 26, 2018
1 parent efce881 commit cf7cf82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/oracle/ocispatial/qsql_ocispatial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2207,7 +2207,7 @@ bool QOCISpatialCols::execBatch( QOCISpatialResultPrivate *d, QVector<QVariant>
}

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

case SQLT_STR:
Expand Down

0 comments on commit cf7cf82

Please sign in to comment.