diff options
author | Lei Zhang <thestig@chromium.org> | 2018-05-22 16:08:28 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-22 16:08:28 +0000 |
commit | 101da6bc6d6cb5b8dabeaf19a7a0758017f37958 (patch) | |
tree | 462e5972c022e92a523ba6b44d377c687d0f154e /core/fxcodec/jbig2/JBig2_SddProc.cpp | |
parent | 1f4d8492095a3d6c6d3452ef075a91d4764a5dc5 (diff) | |
download | pdfium-101da6bc6d6cb5b8dabeaf19a7a0758017f37958.tar.xz |
Remove JBIG2_memcpy() and JBIG2_memset().
Just use memcpy() and memset().
Change-Id: Id6c6fab4e65a5524786ae318270c5981313825f2
Reviewed-on: https://pdfium-review.googlesource.com/32743
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_SddProc.cpp')
-rw-r--r-- | core/fxcodec/jbig2/JBig2_SddProc.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/fxcodec/jbig2/JBig2_SddProc.cpp b/core/fxcodec/jbig2/JBig2_SddProc.cpp index 6bf40efd8f..29c604f1c7 100644 --- a/core/fxcodec/jbig2/JBig2_SddProc.cpp +++ b/core/fxcodec/jbig2/JBig2_SddProc.cpp @@ -6,6 +6,8 @@ #include "core/fxcodec/jbig2/JBig2_SddProc.h" +#include <string.h> + #include <algorithm> #include <memory> #include <utility> @@ -448,8 +450,8 @@ std::unique_ptr<CJBig2_SymbolDict> CJBig2_SDDProc::DecodeHuffman( if (pStream->getByteLeft() >= stride * HCHEIGHT) { BHC = pdfium::MakeUnique<CJBig2_Image>(TOTWIDTH, HCHEIGHT); for (I = 0; I < HCHEIGHT; I++) { - JBIG2_memcpy(BHC->data() + I * BHC->stride(), pStream->getPointer(), - stride); + memcpy(BHC->data() + I * BHC->stride(), pStream->getPointer(), + stride); pStream->offset(stride); } } else { |