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:
Rohan Sinha
2025-05-09 14:11:13 +02:00
committed by Hossein
parent 170a12a2a3
commit fda2cfeb8e
+3 -3
View File
@@ -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()