summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-09-21 19:47:47 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-09-21 19:47:47 +0000
commitfbea60879c6a8db4604e6e0f23216c6ee5f238df (patch)
tree6d5d57825914d2fc64367195f60bb042b218f31b /core/fpdfapi/render
parentb1d6afbeef3213412e2b45269cab36d016c60bcd (diff)
downloadpdfium-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/render')
-rw-r--r--core/fpdfapi/render/cpdf_renderstatus.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp
index 9e8d19abf9..b801c19c53 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.cpp
+++ b/core/fpdfapi/render/cpdf_renderstatus.cpp
@@ -1008,14 +1008,14 @@ void CPDF_RenderStatus::Initialize(const CPDF_RenderStatus* pParentState,
if (!m_InitialStates.m_ColorState.HasFillColor()) {
m_InitialStates.m_ColorState.SetFillColorRef(
pParentState->m_InitialStates.m_ColorState.GetFillColorRef());
- m_InitialStates.m_ColorState.GetMutableFillColor()->Copy(
- *pParentState->m_InitialStates.m_ColorState.GetFillColor());
+ *m_InitialStates.m_ColorState.GetMutableFillColor() =
+ *pParentState->m_InitialStates.m_ColorState.GetFillColor();
}
if (!m_InitialStates.m_ColorState.HasStrokeColor()) {
m_InitialStates.m_ColorState.SetStrokeColorRef(
pParentState->m_InitialStates.m_ColorState.GetFillColorRef());
- m_InitialStates.m_ColorState.GetMutableStrokeColor()->Copy(
- *pParentState->m_InitialStates.m_ColorState.GetStrokeColor());
+ *m_InitialStates.m_ColorState.GetMutableStrokeColor() =
+ *pParentState->m_InitialStates.m_ColorState.GetStrokeColor();
}
}
} else {