diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-05-03 13:51:23 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-03 13:51:23 +0000 |
commit | 241071b455e8922caa787c821563d1bd2587a4c5 (patch) | |
tree | 58be1ceac5bb247cb88d0b6c163ef64abb09831d /core | |
parent | 6312bf94bb44e2edeb855008da0921c13103f66a (diff) | |
download | pdfium-241071b455e8922caa787c821563d1bd2587a4c5.tar.xz |
Make GetPDFDocument return a CPDF_Docment*, not void*.
Small oversight. Gets type safety.
Change-Id: I669c2c990fdf9013f4bc4835738132ed76e734b8
Reviewed-on: https://pdfium-review.googlesource.com/31991
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/fpdfapi/page/cpdf_page.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_page.h b/core/fpdfapi/page/cpdf_page.h index 4e8172db17..47c5ed94f5 100644 --- a/core/fpdfapi/page/cpdf_page.h +++ b/core/fpdfapi/page/cpdf_page.h @@ -59,7 +59,7 @@ class CPDF_Page : public CPDF_PageObjectHolder { } void SetRenderContext(std::unique_ptr<CPDF_PageRenderContext> pContext); - void* GetPDFDocument() const { return m_pPDFDocument.Get(); } + CPDF_Document* GetPDFDocument() const { return m_pPDFDocument.Get(); } View* GetView() const { return m_pView; } void SetView(View* pView) { m_pView = pView; } Extension* GetPageExtension() const { return m_pPageExtension.Get(); } |