summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2017-05-24 13:45:11 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-05-24 22:35:01 +0000
commitdc8a2b7606c2c6c12d5cfb280dfb49128c1a60ab (patch)
tree8808b5cc14ba97955c8b34db7317b9f35c819eea /core
parentedc1e4e5baac33c8f2799e82ff52fd556d3c5e02 (diff)
downloadpdfium-dc8a2b7606c2c6c12d5cfb280dfb49128c1a60ab.tar.xz
Convert to CFX_UnownedPtr, part 10
Change-Id: I4eab5e843580845753c5f80c05cf9490a85114b6 Reviewed-on: https://pdfium-review.googlesource.com/5890 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/fpdfdoc/cpdf_viewerpreferences.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfdoc/cpdf_viewerpreferences.h b/core/fpdfdoc/cpdf_viewerpreferences.h
index c7e9112380..46428a238c 100644
--- a/core/fpdfdoc/cpdf_viewerpreferences.h
+++ b/core/fpdfdoc/cpdf_viewerpreferences.h
@@ -7,6 +7,7 @@
#ifndef CORE_FPDFDOC_CPDF_VIEWERPREFERENCES_H_
#define CORE_FPDFDOC_CPDF_VIEWERPREFERENCES_H_
+#include "core/fxcrt/cfx_unowned_ptr.h"
#include "core/fxcrt/fx_string.h"
#include "core/fxcrt/fx_system.h"
@@ -33,7 +34,7 @@ class CPDF_ViewerPreferences {
private:
CPDF_Dictionary* GetViewerPreferences() const;
- CPDF_Document* const m_pDoc;
+ CFX_UnownedPtr<CPDF_Document> const m_pDoc;
};
#endif // CORE_FPDFDOC_CPDF_VIEWERPREFERENCES_H_