summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_contentmarkitem.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-03-21 18:39:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-21 18:39:06 +0000
commit36bbc24e2d7e5082047ad5b783c69518accafe42 (patch)
tree2978ab807455da2603ad9e7adc8f11f53d59ee00 /core/fpdfapi/page/cpdf_contentmarkitem.h
parenta589b2c7b253179b71a7482ce2341009bb7b6b56 (diff)
downloadpdfium-36bbc24e2d7e5082047ad5b783c69518accafe42.tar.xz
Use more const pointers in CPDF_ContentMarkItem.
Transitively mark the same pointers as const in callers. Change-Id: I1f9669b35c6d7f4b1a11c25163480bc687fbc7f8 Reviewed-on: https://pdfium-review.googlesource.com/28870 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_contentmarkitem.h')
-rw-r--r--core/fpdfapi/page/cpdf_contentmarkitem.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfapi/page/cpdf_contentmarkitem.h b/core/fpdfapi/page/cpdf_contentmarkitem.h
index ea89606816..5dcc7d480a 100644
--- a/core/fpdfapi/page/cpdf_contentmarkitem.h
+++ b/core/fpdfapi/page/cpdf_contentmarkitem.h
@@ -28,18 +28,18 @@ class CPDF_ContentMarkItem {
ByteString GetName() const { return m_MarkName; }
ParamType GetParamType() const { return m_ParamType; }
- CPDF_Dictionary* GetParam() const;
+ const CPDF_Dictionary* GetParam() const;
bool HasMCID() const;
void SetName(const ByteString& name) { m_MarkName = name; }
void SetDirectDict(std::unique_ptr<CPDF_Dictionary> pDict);
- void SetPropertiesDict(CPDF_Dictionary* pDict);
+ void SetPropertiesDict(const CPDF_Dictionary* pDict);
private:
ByteString m_MarkName;
- ParamType m_ParamType;
- UnownedPtr<CPDF_Dictionary> m_pPropertiesDict;
- std::unique_ptr<CPDF_Dictionary> m_pDirectDict;
+ ParamType m_ParamType = None;
+ UnownedPtr<const CPDF_Dictionary> m_pPropertiesDict;
+ std::unique_ptr<const CPDF_Dictionary> m_pDirectDict;
};
#endif // CORE_FPDFAPI_PAGE_CPDF_CONTENTMARKITEM_H_