tdf#163691 Use std::copy() instead of memcpy()

Change-Id: I55df00e2625cf42a7e2662850e8cc272ceb70152
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182787
Tested-by: Jenkins
Reviewed-by: Hossein   <hossein@libreoffice.org>
This commit is contained in:
Kukee Thoo
2025-03-11 20:57:26 +01:00
committed by Hossein
parent 1152ed5c97
commit bff3d755c8
+1 -1
View File
@@ -172,7 +172,7 @@ XMLDrawingPageStyleContext::XMLDrawingPageStyleContext(
size_t size(1); // for the -1 entry
for (ContextID_Index_Pair const* pTemp(pContextIDs); pTemp->nContextID != -1; ++size, ++pTemp);
m_pContextIDs.reset(new ContextID_Index_Pair[size]);
std::memcpy(m_pContextIDs.get(), pContextIDs, size * sizeof(ContextID_Index_Pair));
std::copy(pContextIDs, pContextIDs + size, m_pContextIDs.get());
}
SdXMLDrawingPageStyleContext::SdXMLDrawingPageStyleContext(