summaryrefslogtreecommitdiff
path: root/core/fxcodec/jbig2/JBig2_GrrdProc.cpp
diff options
context:
space:
mode:
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();