commit | 371fd72244041b1155859c9900fe1e8c2f0a2a71 | [log] [tgz] |
---|---|---|
author | Hui Yingst <nigi@chromium.org> | Thu Jun 04 00:33:56 2020 +0000 |
committer | Chromium commit bot <commit-bot@chromium.org> | Thu Jun 04 00:33:56 2020 +0000 |
tree | 6a1e8013ec73d6cad3dbe05e71894a556c5aa5dc | |
parent | ae33e88e41883d4ded6ea4544d14fc314da05421 [diff] |
Remove an unnecessary cast. Remove an unnecessary cast since CPDF_PathObject is a sub class of CPDF_PageObject. Change-Id: Ibcb9d3bb24321d016484afdf377db392109d3b6f Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/70353 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Hui Yingst <nigi@chromium.org>
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp index 18de03f..c025b83 100644 --- a/core/fpdfapi/render/cpdf_renderstatus.cpp +++ b/core/fpdfapi/render/cpdf_renderstatus.cpp
@@ -128,8 +128,7 @@ fill_options |= FXFILL_FULLCOVER; if (options.bNoPathSmooth) fill_options |= FXFILL_NOPATHSMOOTH; - if (static_cast<const CPDF_PageObject*>(path_obj) - ->m_GeneralState.GetStrokeAdjust()) + if (path_obj->m_GeneralState.GetStrokeAdjust()) fill_options |= FX_STROKE_ADJUST; if (is_stroke) fill_options |= FX_FILL_STROKE;