diff options
-rw-r--r-- | writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx | 2 | ||||
-rw-r--r-- | xmlscript/source/xml_helper/xml_byteseq.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx index 6bcab2d41d62..a9ce3995cec9 100644 --- a/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx +++ b/writerfilter/source/ooxml/OOXMLBinaryObjectReference.cxx @@ -52,7 +52,7 @@ void OOXMLBinaryObjectReference::read() nSize += nBytesRead; mSequence.resize(nSize); - memcpy(&mSequence.data()[nOldSize], aSeq.getArray(), nBytesRead); + memcpy(&mSequence[nOldSize], aSeq.getArray(), nBytesRead); } mbRead = true; diff --git a/xmlscript/source/xml_helper/xml_byteseq.cxx b/xmlscript/source/xml_helper/xml_byteseq.cxx index e0d5ec272466..8dec2ce0e8db 100644 --- a/xmlscript/source/xml_helper/xml_byteseq.cxx +++ b/xmlscript/source/xml_helper/xml_byteseq.cxx @@ -63,7 +63,7 @@ sal_Int32 BSeqInputStream::readBytes( if (rData.getLength() != nBytesToRead) rData.realloc( nBytesToRead ); if (nBytesToRead != 0) { - memcpy(rData.getArray(), &_seq.data()[_nPos], nBytesToRead); + memcpy(rData.getArray(), &_seq[_nPos], nBytesToRead); } _nPos += nBytesToRead; return nBytesToRead; |