summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/cxfa_layoutitem.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-01 21:29:29 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-01 21:29:29 +0000
commitf733d7da42cdbb589fc74c58ebc61f83792bdeac (patch)
tree1a3758fa888ab77a7aa9f6bf924a6e5aa2e29391 /xfa/fxfa/parser/cxfa_layoutitem.cpp
parent0562ff4f6e2ec555212d90f2f5b1751d5d576107 (diff)
downloadpdfium-f733d7da42cdbb589fc74c58ebc61f83792bdeac.tar.xz
Replace more unchecked casts with type conversion funtions.
Change-Id: If3eb4396232daed28f2b63ffe1d110075c9299de Reviewed-on: https://pdfium-review.googlesource.com/39230 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/cxfa_layoutitem.cpp')
-rw-r--r--xfa/fxfa/parser/cxfa_layoutitem.cpp2
1 files changed, 1 insertions, 1 deletions
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<CXFA_LayoutItem*>(this); pCurNode;
pCurNode = pCurNode->m_pParent) {
if (pCurNode->m_pFormNode->GetElementType() == XFA_Element::PageArea)
- return static_cast<CXFA_ContainerLayoutItem*>(pCurNode);
+ return pCurNode->AsContainerLayoutItem();
}
return nullptr;
}