summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_GrrdProc.cpp
diff options
context:
space:
mode:
authorNicolas Pena <npm@chromium.org>2017-11-07 19:16:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 19:16:35 +0000
commit826f2223fb0414144d7a627d5d0264da1a5ce82e (patch)
tree14c41a5d1c9ad0262a189f03c80745bb5e0356af /core/fxcodec/jbig2/JBig2_GrrdProc.cpp
parentc9653fb272dd2d006a2725c42b5a36ffafb099a7 (diff)
downloadpdfium-826f2223fb0414144d7a627d5d0264da1a5ce82e.tar.xz
Use MaybeOwned in CJBig2_Image
Change-Id: Id53cbb8c95f6eb929f6e4eb57333daa24f1b776f Reviewed-on: https://pdfium-review.googlesource.com/18010 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Diffstat (limited to 'core/fxcodec/jbig2/JBig2_GrrdProc.cpp')
-rw-r--r--core/fxcodec/jbig2/JBig2_GrrdProc.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/fxcodec/jbig2/JBig2_GrrdProc.cpp b/core/fxcodec/jbig2/JBig2_GrrdProc.cpp
index 71bd8e53e4..df86c88e2c 100644
--- a/core/fxcodec/jbig2/JBig2_GrrdProc.cpp
+++ b/core/fxcodec/jbig2/JBig2_GrrdProc.cpp
@@ -130,18 +130,18 @@ void CJBig2_GRRDProc::decode_Template0_unopt_SetPixel(CJBig2_Image* GRREG,
std::unique_ptr<CJBig2_Image> CJBig2_GRRDProc::decode_Template0_opt(
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* grContext) {
- if (!GRREFERENCE->m_pData)
+ if (!GRREFERENCE->data())
return nullptr;
int32_t iGRW = static_cast<int32_t>(GRW);
int32_t iGRH = static_cast<int32_t>(GRH);
auto GRREG = pdfium::MakeUnique<CJBig2_Image>(iGRW, iGRH);
- if (!GRREG->m_pData)
+ if (!GRREG->data())
return nullptr;
int LTP = 0;
- uint8_t* pLine = GRREG->m_pData;
- uint8_t* pLineR = GRREFERENCE->m_pData;
+ uint8_t* pLine = GRREG->data();
+ uint8_t* pLineR = GRREFERENCE->data();
intptr_t nStride = GRREG->stride();
intptr_t nStrideR = GRREFERENCE->stride();
int32_t GRWR = GRREFERENCE->width();
@@ -363,18 +363,18 @@ std::unique_ptr<CJBig2_Image> CJBig2_GRRDProc::decode_Template1_unopt(
std::unique_ptr<CJBig2_Image> CJBig2_GRRDProc::decode_Template1_opt(
CJBig2_ArithDecoder* pArithDecoder,
JBig2ArithCtx* grContext) {
- if (!GRREFERENCE->m_pData)
+ if (!GRREFERENCE->data())
return nullptr;
int32_t iGRW = static_cast<int32_t>(GRW);
int32_t iGRH = static_cast<int32_t>(GRH);
auto GRREG = pdfium::MakeUnique<CJBig2_Image>(iGRW, iGRH);
- if (!GRREG->m_pData)
+ if (!GRREG->data())
return nullptr;
int LTP = 0;
- uint8_t* pLine = GRREG->m_pData;
- uint8_t* pLineR = GRREFERENCE->m_pData;
+ uint8_t* pLine = GRREG->data();
+ uint8_t* pLineR = GRREFERENCE->data();
intptr_t nStride = GRREG->stride();
intptr_t nStrideR = GRREFERENCE->stride();
int32_t GRWR = GRREFERENCE->width();