From f733d7da42cdbb589fc74c58ebc61f83792bdeac Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 1 Aug 2018 21:29:29 +0000 Subject: Replace more unchecked casts with type conversion funtions. Change-Id: If3eb4396232daed28f2b63ffe1d110075c9299de Reviewed-on: https://pdfium-review.googlesource.com/39230 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- xfa/fxfa/parser/cxfa_layoutitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xfa/fxfa/parser/cxfa_layoutitem.cpp') diff --git a/xfa/fxfa/parser/cxfa_layoutitem.cpp b/xfa/fxfa/parser/cxfa_layoutitem.cpp index 5dd03674c9..7792fa56e5 100644 --- a/xfa/fxfa/parser/cxfa_layoutitem.cpp +++ b/xfa/fxfa/parser/cxfa_layoutitem.cpp @@ -53,7 +53,7 @@ CXFA_ContainerLayoutItem* CXFA_LayoutItem::GetPage() const { for (CXFA_LayoutItem* pCurNode = const_cast(this); pCurNode; pCurNode = pCurNode->m_pParent) { if (pCurNode->m_pFormNode->GetElementType() == XFA_Element::PageArea) - return static_cast(pCurNode); + return pCurNode->AsContainerLayoutItem(); } return nullptr; } -- cgit v1.2.3