summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/fpdf_page_colors.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-04-25 17:56:27 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-04-26 13:38:52 +0000
commit2bbb55162f0c9490a2085ed6eaa38038a7605609 (patch)
treedf3b8cb6206be39dbae43b73311061fba329d1bb /core/fpdfapi/page/fpdf_page_colors.cpp
parent012ae898a069bda7afbfdad4eb4c8ba042b68dc7 (diff)
downloadpdfium-2bbb55162f0c9490a2085ed6eaa38038a7605609.tar.xz
Remove CPDF_Document parameter from CPDF_DeviceCS ctor.
It is always NULL. Change-Id: Iebfb3bc645aebe05335f88d536164a55a7140539 Reviewed-on: https://pdfium-review.googlesource.com/4510 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/fpdf_page_colors.cpp')
-rw-r--r--core/fpdfapi/page/fpdf_page_colors.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/page/fpdf_page_colors.cpp b/core/fpdfapi/page/fpdf_page_colors.cpp
index a59ca37d02..e30c780439 100644
--- a/core/fpdfapi/page/fpdf_page_colors.cpp
+++ b/core/fpdfapi/page/fpdf_page_colors.cpp
@@ -72,8 +72,8 @@ void ReverseRGB(uint8_t* pDestBuf, const uint8_t* pSrcBuf, int pixels) {
}
}
-CPDF_DeviceCS::CPDF_DeviceCS(CPDF_Document* pDoc, int family)
- : CPDF_ColorSpace(pDoc, family, ComponentsForFamily(family)) {
+CPDF_DeviceCS::CPDF_DeviceCS(int family)
+ : CPDF_ColorSpace(nullptr, family, ComponentsForFamily(family)) {
ASSERT(family == PDFCS_DEVICEGRAY || family == PDFCS_DEVICERGB ||
family == PDFCS_DEVICECMYK);
}