diff options
author | Kukee Thoo <kukeethoo@proton.me> | 2025-03-11 17:22:18 +0100 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2025-03-11 20:57:26 +0100 |
commit | bff3d755c8c11721054f4ff40a3d5f723b0c6b96 (patch) | |
tree | 80b9753b2e61847f4c93b2054fffeef90ef71f6e /xmloff/source | |
parent | 1152ed5c9731b71c24b0d045b925ec99f90f4402 (diff) |
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>
Diffstat (limited to 'xmloff/source')
-rw-r--r-- | xmloff/source/draw/ximpstyl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx index 28beb4dff118..3e0d98bfa6ed 100644 --- a/xmloff/source/draw/ximpstyl.cxx +++ b/xmloff/source/draw/ximpstyl.cxx @@ -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( |