summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_generalstate.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-26 18:42:28 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-26 18:42:28 +0000
commit0a6dbeffbc61f2140b1b845f6791c1b15b34cbd7 (patch)
tree7f17e935721f2e9752d2b80fe4cdcbb4f8eb79ba /core/fpdfapi/page/cpdf_generalstate.h
parent785da23f6cce8004b8e7759345abd877dab953ea (diff)
downloadpdfium-0a6dbeffbc61f2140b1b845f6791c1b15b34cbd7.tar.xz
Add some more consts to unowned pointers.
Ideally, unowned ptrs might well be const, as updating something through an unowned reference is best avoided. Change-Id: Ida8111ffe0ee1e30bbf6b7718b0929dfb5cafdff Reviewed-on: https://pdfium-review.googlesource.com/36050 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_generalstate.h')
-rw-r--r--core/fpdfapi/page/cpdf_generalstate.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/fpdfapi/page/cpdf_generalstate.h b/core/fpdfapi/page/cpdf_generalstate.h
index 5d6d5dc552..4a101b99de 100644
--- a/core/fpdfapi/page/cpdf_generalstate.h
+++ b/core/fpdfapi/page/cpdf_generalstate.h
@@ -40,7 +40,7 @@ class CPDF_GeneralState {
CPDF_Object* GetSoftMask() const;
void SetSoftMask(CPDF_Object* pObject);
- CPDF_Object* GetTR() const;
+ const CPDF_Object* GetTR() const;
void SetTR(CPDF_Object* pObject);
RetainPtr<CPDF_TransferFunc> GetTransferFunc() const;
@@ -89,7 +89,7 @@ class CPDF_GeneralState {
CFX_Matrix m_SMaskMatrix;
float m_StrokeAlpha;
float m_FillAlpha;
- UnownedPtr<CPDF_Object> m_pTR;
+ UnownedPtr<const CPDF_Object> m_pTR;
RetainPtr<CPDF_TransferFunc> m_pTransferFunc;
CFX_Matrix m_Matrix;
int m_RenderIntent;
@@ -99,9 +99,9 @@ class CPDF_GeneralState {
bool m_StrokeOP;
bool m_FillOP;
int m_OPMode;
- UnownedPtr<CPDF_Object> m_pBG;
- UnownedPtr<CPDF_Object> m_pUCR;
- UnownedPtr<CPDF_Object> m_pHT;
+ UnownedPtr<const CPDF_Object> m_pBG;
+ UnownedPtr<const CPDF_Object> m_pUCR;
+ UnownedPtr<const CPDF_Object> m_pHT;
float m_Flatness;
float m_Smoothness;
};