summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_path.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-06-09 11:09:22 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-09 11:09:22 -0700
commite64c3c60bdc1ca2e937e4317a9238ab4c210dfe5 (patch)
tree5507e29a647c0a7a8d87fc01fa64773244f2d3b0 /xfa/fde/cfde_path.cpp
parent2334e9e583799a8cb2dfefb3c7e15c5a7da8ead0 (diff)
downloadpdfium-e64c3c60bdc1ca2e937e4317a9238ab4c210dfe5.tar.xz
Remove C-style casts in xfa/fde.
Review-Url: https://codereview.chromium.org/2040323004
Diffstat (limited to 'xfa/fde/cfde_path.cpp')
-rw-r--r--xfa/fde/cfde_path.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/xfa/fde/cfde_path.cpp b/xfa/fde/cfde_path.cpp
index 7ea458d485..f18eab54d2 100644
--- a/xfa/fde/cfde_path.cpp
+++ b/xfa/fde/cfde_path.cpp
@@ -202,17 +202,16 @@ void CFDE_Path::AddLine(const CFX_PointF& pt1, const CFX_PointF& pt2) {
}
void CFDE_Path::AddPath(const CFDE_Path* pSrc, FX_BOOL bConnect) {
- CFDE_Path* pPath = (CFDE_Path*)pSrc;
- if (!pPath)
+ if (!pSrc)
return;
- int32_t iCount = pPath->m_Path.GetPointCount();
+ int32_t iCount = pSrc->m_Path.GetPointCount();
if (iCount < 1)
return;
if (bConnect)
- LineTo(pPath->m_Path.GetPointX(0), pPath->m_Path.GetPointY(0));
+ LineTo(pSrc->m_Path.GetPointX(0), pSrc->m_Path.GetPointY(0));
- m_Path.Append(&pPath->m_Path, nullptr);
+ m_Path.Append(&pSrc->m_Path, nullptr);
}
void CFDE_Path::AddPolygon(const CFX_PointsF& points) {