summaryrefslogtreecommitdiff
path: root/core/fpdfapi
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-06-29 20:44:19 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-29 20:44:19 +0000
commit238947ce91a07fc4fbb17de0a140349446ff4898 (patch)
tree1d0a39616c35d5179857bb4a6c5756db0e3519bc /core/fpdfapi
parent013d065a0ad9cd4dd913997c0cc503234efe436e (diff)
downloadpdfium-238947ce91a07fc4fbb17de0a140349446ff4898.tar.xz
Remove out param from CCodec_IccModule::CreateTransform_sRGB().
Its return value contains the same data. Change-Id: I2bf4e72faf978e5d491bec573babc8099cda4e5a Reviewed-on: https://pdfium-review.googlesource.com/36633 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r--core/fpdfapi/page/cpdf_iccprofile.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/fpdfapi/page/cpdf_iccprofile.cpp b/core/fpdfapi/page/cpdf_iccprofile.cpp
index c0bf7cd2a2..ef1b9ef434 100644
--- a/core/fpdfapi/page/cpdf_iccprofile.cpp
+++ b/core/fpdfapi/page/cpdf_iccprofile.cpp
@@ -27,11 +27,10 @@ CPDF_IccProfile::CPDF_IccProfile(const CPDF_Stream* pStream,
return;
}
- uint32_t nSrcComps = 0;
auto* pIccModule = CPDF_ModuleMgr::Get()->GetIccModule();
- m_Transform = pIccModule->CreateTransform_sRGB(pData, dwSize, &nSrcComps);
+ m_Transform = pIccModule->CreateTransform_sRGB(pData, dwSize);
if (m_Transform)
- m_nSrcComponents = nSrcComps;
+ m_nSrcComponents = m_Transform->components();
}
CPDF_IccProfile::~CPDF_IccProfile() {}