tdf#163691 Replace memcpy with std::copy in basmgr.cxx

Change-Id: I88558282937fe9c4dfb2f102309583f932a4617c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183827
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
This commit is contained in:
FerMeza
2025-04-08 17:24:05 +02:00
committed by Ilmari Lauhakangas
parent 889796512c
commit f3c89726d2
+2 -1
View File
@@ -43,6 +43,7 @@
#include <scriptcont.hxx>
#include <algorithm>
#include <memory>
#include <vector>
@@ -1756,7 +1757,7 @@ static uno::Sequence< sal_Int8 > implGetDialogData( SbxObject* pDialog )
uno::Sequence< sal_Int8 > aData( nLen );
sal_Int8* pDestData = aData.getArray();
const sal_Int8* pSrcData = static_cast<const sal_Int8*>(aMemStream.GetData());
memcpy( pDestData, pSrcData, nLen );
std::copy( pSrcData, pSrcData + nLen, pDestData );
return aData;
}