summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-05-07 21:17:37 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-07 21:17:37 +0000
commitab982e08126e3f2f661de0cd550a1cda5112aaf2 (patch)
treea94794916d9a434ca2154722ae6df8e8fc39fc0e
parent91a2af0cec1bd8bf325feb13536251e5b497f03c (diff)
downloadpdfium-ab982e08126e3f2f661de0cd550a1cda5112aaf2.tar.xz
Use unowned ptr for CPDF_Page::m_pView.
Change-Id: I9d87cefc18a3a468e1bec797bc7711194f6444c7 Reviewed-on: https://pdfium-review.googlesource.com/32155 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
-rw-r--r--core/fpdfapi/page/cpdf_page.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_page.h b/core/fpdfapi/page/cpdf_page.h
index c26c42fc1f..28a12f45b5 100644
--- a/core/fpdfapi/page/cpdf_page.h
+++ b/core/fpdfapi/page/cpdf_page.h
@@ -65,7 +65,7 @@ class CPDF_Page : public CPDF_PageObjectHolder {
void SetRenderContext(std::unique_ptr<CPDF_PageRenderContext> pContext);
CPDF_Document* GetPDFDocument() const { return m_pPDFDocument.Get(); }
- View* GetView() const { return m_pView; }
+ View* GetView() const { return m_pView.Get(); }
void SetView(View* pView) { m_pView = pView; }
Extension* GetPageExtension() const { return m_pPageExtension.Get(); }
void SetPageExtension(Extension* pExt) { m_pPageExtension = pExt; }
@@ -78,11 +78,11 @@ class CPDF_Page : public CPDF_PageObjectHolder {
CFX_SizeF m_PageSize;
CFX_Matrix m_PageMatrix;
- View* m_pView = nullptr;
- UnownedPtr<Extension> m_pPageExtension;
UnownedPtr<CPDF_Document> m_pPDFDocument;
+ UnownedPtr<Extension> m_pPageExtension;
std::unique_ptr<CPDF_PageRenderCache> m_pPageRender;
std::unique_ptr<CPDF_PageRenderContext> m_pRenderContext;
+ UnownedPtr<View> m_pView;
};
#endif // CORE_FPDFAPI_PAGE_CPDF_PAGE_H_