diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-11-13 09:55:39 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-11-13 09:55:39 -0800 |
commit | 1f39a91b9a2f958fa2cd2e4314060b7dfe5d3bb3 (patch) | |
tree | 173f46f10e3423762fb1f7da38d57fd8085efba1 /xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp | |
parent | 66feb70bb9ed26095803af0ba832f72429110c15 (diff) | |
download | pdfium-1f39a91b9a2f958fa2cd2e4314060b7dfe5d3bb3.tar.xz |
Fold CXFA_LayoutItem into CXFA_LayoutItemImpl.
Fixes illegal casting between unrelated types, and removes
about 30 explicit casts that are no longer required.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1441183002 .
Diffstat (limited to 'xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp')
-rw-r--r-- | xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp b/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp index 79f4ee1ccf..f68a94e550 100644 --- a/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp +++ b/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp @@ -711,13 +711,13 @@ int32_t CXFA_WidgetAcc::ExecuteScript(CXFA_Script script, return iRet;
}
CXFA_FFWidget* CXFA_WidgetAcc::GetNextWidget(CXFA_FFWidget* pWidget) {
- CXFA_LayoutItem* pLayout = NULL;
+ CXFA_LayoutItemImpl* pLayout = nullptr;
if (pWidget) {
- pLayout = pWidget->GetLayoutItem()->GetNext();
+ pLayout = pWidget->GetNext();
} else {
pLayout = m_pDocView->GetXFALayout()->GetLayoutItem(m_pNode);
}
- return (CXFA_FFWidget*)(CXFA_ContentLayoutItemImpl*)pLayout;
+ return static_cast<CXFA_FFWidget*>(pLayout);
}
void CXFA_WidgetAcc::UpdateUIDisplay(CXFA_FFWidget* pExcept) {
CXFA_FFWidget* pWidget = NULL;
|