From 241071b455e8922caa787c821563d1bd2587a4c5 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 3 May 2018 13:51:23 +0000 Subject: 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 Reviewed-by: dsinclair --- core/fpdfapi/page/cpdf_page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/fpdfapi/page') 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 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(); } -- cgit v1.2.3