diff options
Diffstat (limited to 'core/fpdfapi/page/cpdf_colorspace.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_colorspace.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_colorspace.h b/core/fpdfapi/page/cpdf_colorspace.h index 76072d1260..15029026c2 100644 --- a/core/fpdfapi/page/cpdf_colorspace.h +++ b/core/fpdfapi/page/cpdf_colorspace.h @@ -9,6 +9,7 @@ #include <memory> +#include "core/fxcrt/cfx_unowned_ptr.h" #include "core/fxcrt/fx_string.h" #include "core/fxcrt/fx_system.h" @@ -61,7 +62,7 @@ class CPDF_ColorSpace { int image_height, bool bTransMask) const; - CPDF_Array*& GetArray() { return m_pArray; } + CPDF_Array* GetArray() const { return m_pArray.Get(); } virtual CPDF_ColorSpace* GetBaseCS() const; virtual void EnableStdConversion(bool bEnabled); @@ -82,7 +83,7 @@ class CPDF_ColorSpace { int m_Family; uint32_t m_nComponents; - CPDF_Array* m_pArray; + CFX_UnownedPtr<CPDF_Array> m_pArray; uint32_t m_dwStdConversion; }; |