summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_fwltheme.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-12-08 14:06:10 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-08 14:06:10 -0800
commit89ab499024b1f362b1d40dabd9fadded8b095203 (patch)
tree456a5edadee5b6e45ce11e552c110f84e5b765b9 /xfa/fxfa/app/xfa_fwltheme.cpp
parent43ac44cbf52076fd2354d5276c95d5b4b4a06d64 (diff)
downloadpdfium-89ab499024b1f362b1d40dabd9fadded8b095203.tar.xz
Change layout item in CFWL_Widget type from void
Previously the LayoutItem was a void*. This Cl changes the LayoutItem to explicity be a CXFA_FFWidget. Review-Url: https://codereview.chromium.org/2559643004
Diffstat (limited to 'xfa/fxfa/app/xfa_fwltheme.cpp')
-rw-r--r--xfa/fxfa/app/xfa_fwltheme.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/xfa/fxfa/app/xfa_fwltheme.cpp b/xfa/fxfa/app/xfa_fwltheme.cpp
index 2ca6237109..5a494f1231 100644
--- a/xfa/fxfa/app/xfa_fwltheme.cpp
+++ b/xfa/fxfa/app/xfa_fwltheme.cpp
@@ -38,9 +38,7 @@ CXFA_FFWidget* XFA_ThemeGetOuterWidget(CFWL_Widget* pWidget) {
CFWL_Widget* pOuter = pWidget;
while (pOuter && pOuter->GetOuter())
pOuter = pOuter->GetOuter();
-
- return pOuter ? static_cast<CXFA_FFWidget*>(pOuter->GetLayoutItem())
- : nullptr;
+ return pOuter ? pOuter->GetLayoutItem() : nullptr;
}
CXFA_FWLTheme::CXFA_FWLTheme(CXFA_FFApp* pApp)