diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-09-21 19:47:47 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-09-21 19:47:47 +0000 |
commit | fbea60879c6a8db4604e6e0f23216c6ee5f238df (patch) | |
tree | 6d5d57825914d2fc64367195f60bb042b218f31b /core/fpdfapi/page/cpdf_color.h | |
parent | b1d6afbeef3213412e2b45269cab36d016c60bcd (diff) | |
download | pdfium-fbea60879c6a8db4604e6e0f23216c6ee5f238df.tar.xz |
Replace CPDF_Color::Copy() with honest-to-goodness operator=().
Change-Id: Ifcce7b1e513c8859752d5248ae686bbe5349e342
Reviewed-on: https://pdfium-review.googlesource.com/42614
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_color.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_color.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/page/cpdf_color.h b/core/fpdfapi/page/cpdf_color.h index 3448c152e2..084cc28f95 100644 --- a/core/fpdfapi/page/cpdf_color.h +++ b/core/fpdfapi/page/cpdf_color.h @@ -17,18 +17,18 @@ class CPDF_Pattern; class CPDF_Color { public: CPDF_Color(); + CPDF_Color(const CPDF_Color& that); + ~CPDF_Color(); + CPDF_Color& operator=(const CPDF_Color& that); + bool IsNull() const { return !m_pBuffer; } bool IsPattern() const; - - void Copy(const CPDF_Color& src); - void SetColorSpace(CPDF_ColorSpace* pCS); void SetValueForNonPattern(const std::vector<float>& values); void SetValueForPattern(CPDF_Pattern* pPattern, const std::vector<float>& values); - uint32_t CountComponents() const; bool IsColorSpaceRGB() const; bool GetRGB(int* R, int* G, int* B) const; |