From e64c3c60bdc1ca2e937e4317a9238ab4c210dfe5 Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 9 Jun 2016 11:09:22 -0700 Subject: Remove C-style casts in xfa/fde. Review-Url: https://codereview.chromium.org/2040323004 --- xfa/fde/css/fde_cssstylesheet.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xfa/fde/css/fde_cssstylesheet.cpp') 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(pRule)->~CFDE_CSSStyleRule(); break; case FDE_CSSRULETYPE_Media: - ((CFDE_CSSMediaRule*)pRule)->~CFDE_CSSMediaRule(); + static_cast(pRule)->~CFDE_CSSMediaRule(); break; case FDE_CSSRULETYPE_FontFace: - ((CFDE_CSSFontFaceRule*)pRule)->~CFDE_CSSFontFaceRule(); + static_cast(pRule)->~CFDE_CSSFontFaceRule(); break; default: ASSERT(FALSE); -- cgit v1.2.3