summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdf_editimg.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-07 23:36:26 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-07 23:36:26 +0000
commit8f63763317ae1ef65d1ac2719624adeb728f2207 (patch)
treeb4d7e2c8edd8a84e0bc197f29a3ac05532077e44 /fpdfsdk/fpdf_editimg.cpp
parent4c31a13a704850fdf301fb561ba966baa3c7c29c (diff)
downloadpdfium-8f63763317ae1ef65d1ac2719624adeb728f2207.tar.xz
Make more CPDF_PageObjectHolder members protected.
Change-Id: Id31b9f6ac33971c47cdb378ff7f9ca7d33f899b9 Reviewed-on: https://pdfium-review.googlesource.com/32112 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdf_editimg.cpp')
-rw-r--r--fpdfsdk/fpdf_editimg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_editimg.cpp b/fpdfsdk/fpdf_editimg.cpp
index 9485a75002..fed1581e2d 100644
--- a/fpdfsdk/fpdf_editimg.cpp
+++ b/fpdfsdk/fpdf_editimg.cpp
@@ -305,12 +305,12 @@ FPDFImageObj_GetImageMetadata(FPDF_PAGEOBJECT image_object,
metadata->colorspace = FPDF_COLORSPACE_UNKNOWN;
CPDF_Page* pPage = CPDFPageFromFPDFPage(page);
- if (!pPage || !pPage->m_pDocument.Get() || !pImg->GetStream())
+ if (!pPage || !pPage->GetDocument() || !pImg->GetStream())
return true;
auto pSource = pdfium::MakeRetain<CPDF_DIBSource>();
CPDF_DIBSource::LoadState ret = pSource->StartLoadDIBSource(
- pPage->m_pDocument.Get(), pImg->GetStream(), false, nullptr,
+ pPage->GetDocument(), pImg->GetStream(), false, nullptr,
pPage->m_pPageResources.Get());
if (ret == CPDF_DIBSource::LoadState::kFail)
return true;