diff options
author | Henrique Nakashima <hnakashima@chromium.org> | 2018-06-07 19:43:42 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-07 19:43:42 +0000 |
commit | 888af47eec5784c1919200087769b7e58e5efd02 (patch) | |
tree | 5e9916c5f3b83ff4f33674a945a987c38ad68d05 /core/fpdfapi/page/cpdf_pageobjectholder.h | |
parent | 4cc32e30aaacc2e527acd052fa038158f4294636 (diff) | |
download | pdfium-888af47eec5784c1919200087769b7e58e5efd02.tar.xz |
Rename CPDF_PageObjectHolder::GetFormDict() to GetDict().
Renamed the underlying member m_pFormDict as well.
These names are misleading, as a page also uses the same field as
the page dict.
Change-Id: I52e0f1864a917a1e1b863725cb0d4f22faecacb3
Reviewed-on: https://pdfium-review.googlesource.com/34450
Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_pageobjectholder.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_pageobjectholder.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_pageobjectholder.h b/core/fpdfapi/page/cpdf_pageobjectholder.h index 79b2166d52..1c427913ea 100644 --- a/core/fpdfapi/page/cpdf_pageobjectholder.h +++ b/core/fpdfapi/page/cpdf_pageobjectholder.h @@ -43,7 +43,7 @@ class CPDF_PageObjectHolder { public: enum class ParseState : uint8_t { kNotParsed, kParsing, kParsed }; - CPDF_PageObjectHolder(CPDF_Document* pDoc, CPDF_Dictionary* pFormDict); + CPDF_PageObjectHolder(CPDF_Document* pDoc, CPDF_Dictionary* pDict); virtual ~CPDF_PageObjectHolder(); virtual bool IsPage() const; @@ -56,7 +56,7 @@ class CPDF_PageObjectHolder { // TODO(thestig): Can this return nullptr? If not, audit callers and simplify // the ones that assume it can. - CPDF_Dictionary* GetFormDict() const { return m_pFormDict.Get(); } + CPDF_Dictionary* GetDict() const { return m_pDict.Get(); } const CPDF_PageObjectList* GetPageObjectList() const { return &m_PageObjectList; @@ -99,7 +99,7 @@ class CPDF_PageObjectHolder { private: bool m_bBackgroundAlphaNeeded = false; ParseState m_ParseState = ParseState::kNotParsed; - const UnownedPtr<CPDF_Dictionary> m_pFormDict; + const UnownedPtr<CPDF_Dictionary> m_pDict; UnownedPtr<CPDF_Document> m_pDocument; std::vector<CFX_FloatRect> m_MaskBoundingBoxes; std::unique_ptr<CPDF_ContentParser> m_pParser; |