diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-04 23:01:00 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-04 23:01:00 +0000 |
commit | c38c9d15f18c2b883df6e29f2364d05699b87d53 (patch) | |
tree | 9c9c3e133edf40d820acb4e96aec394224d87668 /core/fpdfapi | |
parent | 30540a95637256412eab3e87f954ee2b9793678f (diff) | |
download | pdfium-c38c9d15f18c2b883df6e29f2364d05699b87d53.tar.xz |
Refer to const smart pointers consistently.
SmartPtr<T> const m_Ptr, instead of const SmartPtr<T> m_Ptr.
Change-Id: I8001b0334543f49d138a24438def62088a15c6e4
Reviewed-on: https://pdfium-review.googlesource.com/c/43512
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/page/cpdf_formobject.h | 2 | ||||
-rw-r--r-- | core/fpdfapi/page/cpdf_pageobjectholder.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_formobject.h b/core/fpdfapi/page/cpdf_formobject.h index dc53c454c4..c24bfbfd2c 100644 --- a/core/fpdfapi/page/cpdf_formobject.h +++ b/core/fpdfapi/page/cpdf_formobject.h @@ -33,7 +33,7 @@ class CPDF_FormObject final : public CPDF_PageObject { const CFX_Matrix& form_matrix() const { return m_FormMatrix; } private: - const std::unique_ptr<CPDF_Form> m_pForm; + std::unique_ptr<CPDF_Form> const m_pForm; CFX_Matrix m_FormMatrix; }; diff --git a/core/fpdfapi/page/cpdf_pageobjectholder.h b/core/fpdfapi/page/cpdf_pageobjectholder.h index b1f7fb9e7f..4f5a60f79d 100644 --- a/core/fpdfapi/page/cpdf_pageobjectholder.h +++ b/core/fpdfapi/page/cpdf_pageobjectholder.h @@ -102,7 +102,7 @@ class CPDF_PageObjectHolder { private: bool m_bBackgroundAlphaNeeded = false; ParseState m_ParseState = ParseState::kNotParsed; - const UnownedPtr<CPDF_Dictionary> m_pDict; + UnownedPtr<CPDF_Dictionary> const m_pDict; UnownedPtr<CPDF_Document> m_pDocument; std::vector<CFX_FloatRect> m_MaskBoundingBoxes; std::unique_ptr<CPDF_ContentParser> m_pParser; |