diff options
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/render/cpdf_imageloader.cpp | 4 | ||||
-rw-r--r-- | core/fpdfapi/render/cpdf_imageloader.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfapi/render/cpdf_imageloader.cpp b/core/fpdfapi/render/cpdf_imageloader.cpp index c8f9013029..f3a626350b 100644 --- a/core/fpdfapi/render/cpdf_imageloader.cpp +++ b/core/fpdfapi/render/cpdf_imageloader.cpp @@ -21,14 +21,14 @@ CPDF_ImageLoader::CPDF_ImageLoader() CPDF_ImageLoader::~CPDF_ImageLoader() {} -bool CPDF_ImageLoader::Start(const CPDF_ImageObject* pImage, +bool CPDF_ImageLoader::Start(CPDF_ImageObject* pImage, CPDF_PageRenderCache* pCache, bool bStdCS, uint32_t GroupFamily, bool bLoadMask, CPDF_RenderStatus* pRenderStatus) { m_pCache = pCache; - m_pImageObject = const_cast<CPDF_ImageObject*>(pImage); + m_pImageObject = pImage; bool ret; if (pCache) { ret = pCache->StartGetCachedBitmap(m_pImageObject->GetImage(), bStdCS, diff --git a/core/fpdfapi/render/cpdf_imageloader.h b/core/fpdfapi/render/cpdf_imageloader.h index a4f313fb69..629609df48 100644 --- a/core/fpdfapi/render/cpdf_imageloader.h +++ b/core/fpdfapi/render/cpdf_imageloader.h @@ -23,7 +23,7 @@ class CPDF_ImageLoader { CPDF_ImageLoader(); ~CPDF_ImageLoader(); - bool Start(const CPDF_ImageObject* pImage, + bool Start(CPDF_ImageObject* pImage, CPDF_PageRenderCache* pCache, bool bStdCS, uint32_t GroupFamily, |