diff options
Diffstat (limited to 'xfa/fxfa/parser/xfa_layout_appadapter.h')
-rw-r--r-- | xfa/fxfa/parser/xfa_layout_appadapter.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xfa/fxfa/parser/xfa_layout_appadapter.h b/xfa/fxfa/parser/xfa_layout_appadapter.h index be7072b704..1bae22ee32 100644 --- a/xfa/fxfa/parser/xfa_layout_appadapter.h +++ b/xfa/fxfa/parser/xfa_layout_appadapter.h @@ -14,7 +14,7 @@ class CXFA_TraverseStrategy_PageAreaContainerLayoutItem { static inline CXFA_ContainerLayoutItem* GetFirstChild( CXFA_ContainerLayoutItem* pLayoutItem) { if (pLayoutItem->m_pFormNode->GetClassID() == XFA_ELEMENT_PageSet) { - return (CXFA_ContainerLayoutItem*)pLayoutItem->m_pFirstChild; + return static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem->m_pFirstChild); } return NULL; } @@ -24,7 +24,7 @@ class CXFA_TraverseStrategy_PageAreaContainerLayoutItem { } static inline CXFA_ContainerLayoutItem* GetParent( CXFA_ContainerLayoutItem* pLayoutItem) { - return (CXFA_ContainerLayoutItem*)pLayoutItem->m_pParent; + return static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem->m_pParent); } }; class CXFA_TraverseStrategy_ContentAreaContainerLayoutItem { @@ -53,22 +53,22 @@ class CXFA_TraverseStrategy_ContentAreaContainerLayoutItem { } static inline CXFA_ContainerLayoutItem* GetParent( CXFA_ContainerLayoutItem* pLayoutItem) { - return (CXFA_ContainerLayoutItem*)pLayoutItem->m_pParent; + return static_cast<CXFA_ContainerLayoutItem*>(pLayoutItem->m_pParent); } }; class CXFA_TraverseStrategy_ContentLayoutItem { public: static inline CXFA_ContentLayoutItem* GetFirstChild( CXFA_ContentLayoutItem* pLayoutItem) { - return (CXFA_ContentLayoutItem*)pLayoutItem->m_pFirstChild; + return static_cast<CXFA_ContentLayoutItem*>(pLayoutItem->m_pFirstChild); } static inline CXFA_ContentLayoutItem* GetNextSibling( CXFA_ContentLayoutItem* pLayoutItem) { - return (CXFA_ContentLayoutItem*)pLayoutItem->m_pNextSibling; + return static_cast<CXFA_ContentLayoutItem*>(pLayoutItem->m_pNextSibling); } static inline CXFA_ContentLayoutItem* GetParent( CXFA_ContentLayoutItem* pLayoutItem) { - return (CXFA_ContentLayoutItem*)pLayoutItem->m_pParent; + return static_cast<CXFA_ContentLayoutItem*>(pLayoutItem->m_pParent); } }; |