diff options
author | tsepez <tsepez@chromium.org> | 2016-06-09 11:09:22 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-09 11:09:22 -0700 |
commit | e64c3c60bdc1ca2e937e4317a9238ab4c210dfe5 (patch) | |
tree | 5507e29a647c0a7a8d87fc01fa64773244f2d3b0 /xfa/fde/css/fde_cssstylesheet.cpp | |
parent | 2334e9e583799a8cb2dfefb3c7e15c5a7da8ead0 (diff) | |
download | pdfium-e64c3c60bdc1ca2e937e4317a9238ab4c210dfe5.tar.xz |
Remove C-style casts in xfa/fde.
Review-Url: https://codereview.chromium.org/2040323004
Diffstat (limited to 'xfa/fde/css/fde_cssstylesheet.cpp')
-rw-r--r-- | xfa/fde/css/fde_cssstylesheet.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fde/css/fde_cssstylesheet.cpp b/xfa/fde/css/fde_cssstylesheet.cpp index 5a3cc76f5b..1ea8d8061d 100644 --- a/xfa/fde/css/fde_cssstylesheet.cpp +++ b/xfa/fde/css/fde_cssstylesheet.cpp @@ -87,13 +87,13 @@ void CFDE_CSSStyleSheet::Reset() { IFDE_CSSRule* pRule = m_RuleArray.GetAt(i); switch (pRule->GetType()) { case FDE_CSSRULETYPE_Style: - ((CFDE_CSSStyleRule*)pRule)->~CFDE_CSSStyleRule(); + static_cast<CFDE_CSSStyleRule*>(pRule)->~CFDE_CSSStyleRule(); break; case FDE_CSSRULETYPE_Media: - ((CFDE_CSSMediaRule*)pRule)->~CFDE_CSSMediaRule(); + static_cast<CFDE_CSSMediaRule*>(pRule)->~CFDE_CSSMediaRule(); break; case FDE_CSSRULETYPE_FontFace: - ((CFDE_CSSFontFaceRule*)pRule)->~CFDE_CSSFontFaceRule(); + static_cast<CFDE_CSSFontFaceRule*>(pRule)->~CFDE_CSSFontFaceRule(); break; default: ASSERT(FALSE); |