diff options
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_Icon.cpp')
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_Icon.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_Icon.cpp b/fpdfsdk/pdfwindow/PWL_Icon.cpp index 3ae7244552..e1397bff0c 100644 --- a/fpdfsdk/pdfwindow/PWL_Icon.cpp +++ b/fpdfsdk/pdfwindow/PWL_Icon.cpp @@ -55,8 +55,8 @@ void CPWL_Image::SetPDFStream(CPDF_Stream* pStream) { m_pPDFStream = pStream; } -CPDF_Stream* CPWL_Image::GetPDFStream() { - return m_pPDFStream; +CPDF_Stream* CPWL_Image::GetPDFStream() const { + return m_pPDFStream.Get(); } void CPWL_Image::GetImageSize(float& fWidth, float& fHeight) { @@ -114,8 +114,8 @@ CPWL_Icon::CPWL_Icon() : m_pIconFit(nullptr) {} CPWL_Icon::~CPWL_Icon() {} -CPDF_IconFit* CPWL_Icon::GetIconFit() { - return m_pIconFit; +CPDF_IconFit* CPWL_Icon::GetIconFit() const { + return m_pIconFit.Get(); } int32_t CPWL_Icon::GetScaleMethod() { |