From efd4f944deaf4687911d39dbceb4c92f728e68a0 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 8 May 2017 16:36:28 -0700 Subject: No-effect cast in cxfa_layoutitem.cpp Change-Id: I5bc24fb56adfa2ef9b46edd7409e6086093ccf8a Reviewed-on: https://pdfium-review.googlesource.com/5150 Reviewed-by: dsinclair Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_layoutitem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xfa/fxfa') diff --git a/xfa/fxfa/parser/cxfa_layoutitem.cpp b/xfa/fxfa/parser/cxfa_layoutitem.cpp index b227be9e85..2bac7950ef 100644 --- a/xfa/fxfa/parser/cxfa_layoutitem.cpp +++ b/xfa/fxfa/parser/cxfa_layoutitem.cpp @@ -20,12 +20,10 @@ void XFA_ReleaseLayoutItem(CXFA_LayoutItem* pLayoutItem) { while (pNode) { CXFA_LayoutItem* pNext = pNode->m_pNextSibling; pNode->m_pParent = nullptr; - pNotify->OnLayoutItemRemoving(pDocLayout, - static_cast(pNode)); + pNotify->OnLayoutItemRemoving(pDocLayout, pNode); XFA_ReleaseLayoutItem(pNode); pNode = pNext; } - pNotify->OnLayoutItemRemoving(pDocLayout, pLayoutItem); if (pLayoutItem->m_pFormNode->GetElementType() == XFA_Element::PageArea) { pNotify->OnPageEvent(static_cast(pLayoutItem), -- cgit v1.2.3