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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user