summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_colorspace.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-04-12 11:21:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-12 11:21:23 -0700
commitd55e11eeb8ebf1e226a1166f395ba77248ce84c3 (patch)
treec28b1c1d6ac1597e569618cdeb02e3e0009bf8ed /core/fpdfapi/fpdf_page/cpdf_colorspace.cpp
parentea98238666e33cd16b69cb23dcaca047c21c9998 (diff)
downloadpdfium-d55e11eeb8ebf1e226a1166f395ba77248ce84c3.tar.xz
Remove ICodec_* Interfaces.
All of the ICodec_* interfaces had a single implementation. This CL removes the interfaces and uses the concrete classes in their place. BUG=pdfium:468 Review URL: https://codereview.chromium.org/1876023003
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_colorspace.cpp')
-rw-r--r--core/fpdfapi/fpdf_page/cpdf_colorspace.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_colorspace.cpp b/core/fpdfapi/fpdf_page/cpdf_colorspace.cpp
index 79faebafc9..aa31f9cbac 100644
--- a/core/fpdfapi/fpdf_page/cpdf_colorspace.cpp
+++ b/core/fpdfapi/fpdf_page/cpdf_colorspace.cpp
@@ -863,12 +863,14 @@ FX_BOOL CPDF_ICCBasedCS::GetRGB(FX_FLOAT* pBuf,
B = pBuf[2];
return TRUE;
}
- ICodec_IccModule* pIccModule = CPDF_ModuleMgr::Get()->GetIccModule();
+ CCodec_IccModule* pIccModule = CPDF_ModuleMgr::Get()->GetIccModule();
if (!m_pProfile->m_pTransform || !pIccModule) {
- if (m_pAlterCS) {
+ if (m_pAlterCS)
return m_pAlterCS->GetRGB(pBuf, R, G, B);
- }
- R = G = B = 0.0f;
+
+ R = 0.0f;
+ G = 0.0f;
+ B = 0.0f;
return TRUE;
}
FX_FLOAT rgb[3];