From 9b8b217e6f8f2ff03b09d6075e689804928c7b3c Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 25 Apr 2018 22:12:34 +0000 Subject: Replace reinterpret_cast with static_cast where possible Change-Id: Ic62f1def8e043494c9fa6c08a937d7d872513567 Reviewed-on: https://pdfium-review.googlesource.com/31314 Commit-Queue: Tom Sepez Reviewed-by: dsinclair --- xfa/fxfa/parser/cxfa_document_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa') diff --git a/xfa/fxfa/parser/cxfa_document_parser.cpp b/xfa/fxfa/parser/cxfa_document_parser.cpp index e4f85f2bac..f773a36897 100644 --- a/xfa/fxfa/parser/cxfa_document_parser.cpp +++ b/xfa/fxfa/parser/cxfa_document_parser.cpp @@ -127,7 +127,7 @@ bool MatchNodeName(CFX_XMLNode* pNode, if (!pNode || pNode->GetType() != FX_XMLNODE_Element) return false; - CFX_XMLElement* pElement = reinterpret_cast(pNode); + CFX_XMLElement* pElement = static_cast(pNode); WideString wsNodeStr = pElement->GetLocalTagName(); if (wsNodeStr != wsLocalTagName) return false; @@ -487,7 +487,7 @@ CXFA_Node* CXFA_DocumentParser::ParseAsXDPPacket_XDP( if (pChildItem == pXMLConfigDOMRoot) continue; - CFX_XMLElement* pElement = reinterpret_cast(pChildItem); + CFX_XMLElement* pElement = static_cast(pChildItem); WideString wsPacketName = pElement->GetLocalTagName(); const PacketInfo* pPacketInfo = GetPacketByName(wsPacketName.AsStringView()); -- cgit v1.2.3