tdf#163691 replace memcpy with std::copy in xml_byteseq
Change-Id: I6d178bcb6127ba444bf4566906efe46204f5ab6d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183511 Reviewed-by: Hossein <hossein@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
@@ -120,9 +120,9 @@ void BSeqOutputStream::writeBytes( Sequence< sal_Int8 > const & rData )
|
||||
sal_Int32 nPos = _seq->size();
|
||||
_seq->resize( nPos + rData.getLength() );
|
||||
if (rData.getLength() != 0) {
|
||||
memcpy( _seq->data() + nPos,
|
||||
rData.getConstArray(),
|
||||
rData.getLength() );
|
||||
std::copy(rData.getConstArray(),
|
||||
rData.getConstArray() + rData.getLength(),
|
||||
_seq->begin() + nPos);
|
||||
}
|
||||
}
|
||||
void BSeqOutputStream::flush()
|
||||
|
||||
Reference in New Issue
Block a user