From f41d9dc1ead47a1218e1cd37bd74ec850c8baaa3 Mon Sep 17 00:00:00 2001 From: thestig Date: Fri, 5 Aug 2016 22:34:58 -0700 Subject: Add CPDF_ImageObject::GetImage(). And use it where appropriate. Review-Url: https://codereview.chromium.org/2224623002 --- fpdfsdk/fpdfeditimg.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/fpdfeditimg.cpp b/fpdfsdk/fpdfeditimg.cpp index b2c25779c6..cd28301977 100644 --- a/fpdfsdk/fpdfeditimg.cpp +++ b/fpdfsdk/fpdfeditimg.cpp @@ -37,9 +37,9 @@ FPDFImageObj_LoadJpegFile(FPDF_PAGE* pages, for (int index = 0; index < nCount; index++) { CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); if (pPage) - pImgObj->m_pImage->ResetCache(pPage, nullptr); + pImgObj->GetImage()->ResetCache(pPage, nullptr); } - pImgObj->m_pImage->SetJpegImage(pFile); + pImgObj->GetImage()->SetJpegImage(pFile); return TRUE; } @@ -77,9 +77,9 @@ DLLEXPORT FPDF_BOOL STDCALL FPDFImageObj_SetBitmap(FPDF_PAGE* pages, for (int index = 0; index < nCount; index++) { CPDF_Page* pPage = CPDFPageFromFPDFPage(pages[index]); if (pPage) - pImgObj->m_pImage->ResetCache(pPage, nullptr); + pImgObj->GetImage()->ResetCache(pPage, nullptr); } - pImgObj->m_pImage->SetImage(reinterpret_cast(bitmap), FALSE); + pImgObj->GetImage()->SetImage(reinterpret_cast(bitmap), FALSE); pImgObj->CalcBoundingBox(); return TRUE; } -- cgit v1.2.3