summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_dest.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-05-28 17:51:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-28 17:51:28 +0000
commitfffdeebfd0ed9806d32eb5609e0fdd015c25c5ac (patch)
tree7461043e508179a7d33b850486f312c58048e4a8 /core/fpdfdoc/cpdf_dest.h
parent45a55241d315d25067582d29fcdc1ff8b818965f (diff)
downloadpdfium-fffdeebfd0ed9806d32eb5609e0fdd015c25c5ac.tar.xz
Add const/non-const versions of remaining CPDF_Dictionary methods.
GetObjectFor() and GetDirectObjectFor(). Change-Id: I588cd994dfccf0ffd4c8f91362a4806dc109251e Reviewed-on: https://pdfium-review.googlesource.com/32991 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfdoc/cpdf_dest.h')
-rw-r--r--core/fpdfdoc/cpdf_dest.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfdoc/cpdf_dest.h b/core/fpdfdoc/cpdf_dest.h
index 9f9f08723f..7f4eb86c00 100644
--- a/core/fpdfdoc/cpdf_dest.h
+++ b/core/fpdfdoc/cpdf_dest.h
@@ -18,10 +18,10 @@ class CPDF_Dest {
public:
CPDF_Dest();
CPDF_Dest(const CPDF_Dest& that);
- explicit CPDF_Dest(CPDF_Array* pObj);
+ explicit CPDF_Dest(const CPDF_Array* pObj);
~CPDF_Dest();
- CPDF_Array* GetObject() const { return m_pObj.Get(); }
+ const CPDF_Array* GetObject() const { return m_pObj.Get(); }
ByteString GetRemoteName() const;
// Deprecated. Use GetDestPageIndex instead.
@@ -46,7 +46,7 @@ class CPDF_Dest {
float* pZoom) const;
private:
- UnownedPtr<CPDF_Array> m_pObj;
+ UnownedPtr<const CPDF_Array> const m_pObj;
};
#endif // CORE_FPDFDOC_CPDF_DEST_H_