summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_ffwidget.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-06-09 11:46:16 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-09 11:46:16 -0700
commit20d6b76d82a762e75e8c2a89976f93acd9af7467 (patch)
tree9142c0179606d9909158678559e0adcac8b9991f /xfa/fxfa/app/xfa_ffwidget.cpp
parente64c3c60bdc1ca2e937e4317a9238ab4c210dfe5 (diff)
downloadpdfium-20d6b76d82a762e75e8c2a89976f93acd9af7467.tar.xz
Use static_cast<CXFA_WidgetAcc*> in xfa.
Remove a few other unused casts, simplify. Review-Url: https://codereview.chromium.org/2052593003
Diffstat (limited to 'xfa/fxfa/app/xfa_ffwidget.cpp')
-rw-r--r--xfa/fxfa/app/xfa_ffwidget.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fxfa/app/xfa_ffwidget.cpp b/xfa/fxfa/app/xfa_ffwidget.cpp
index 8e10189f8c..8925cd35cf 100644
--- a/xfa/fxfa/app/xfa_ffwidget.cpp
+++ b/xfa/fxfa/app/xfa_ffwidget.cpp
@@ -345,7 +345,7 @@ CXFA_FFWidget* CXFA_FFWidget::GetParent() {
m_pDataAcc->GetNode()->GetNodeItem(XFA_NODEITEM_Parent);
if (pParentNode) {
CXFA_WidgetAcc* pParentWidgetAcc =
- (CXFA_WidgetAcc*)pParentNode->GetWidgetData();
+ static_cast<CXFA_WidgetAcc*>(pParentNode->GetWidgetData());
if (pParentWidgetAcc) {
return pParentWidgetAcc->GetNextWidget(NULL);
}
@@ -378,7 +378,7 @@ CXFA_FFDocView* CXFA_FFWidget::GetDocView() {
return m_pDocView;
}
CXFA_FFDoc* CXFA_FFWidget::GetDoc() {
- return (CXFA_FFDoc*)m_pDocView->GetDoc();
+ return m_pDocView->GetDoc();
}
CXFA_FFApp* CXFA_FFWidget::GetApp() {
return GetDoc()->GetApp();