diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-05-27 16:36:35 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-05-27 16:36:35 -0700 |
commit | 18e5b4b41dc622d4601be538934272678beb7069 (patch) | |
tree | c81e775531cd328143d1ffd4f2bb6277627e8e76 /xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp | |
parent | 04db653b2b4c266036fbd274b53f0763e35f4ee6 (diff) | |
download | pdfium-18e5b4b41dc622d4601be538934272678beb7069.tar.xz |
Replace XFA_HDOC with IXFA_Doc*
There are better ways to provide information hiding than casting
willy-nilly from an unrelated structure. Kill dozens of casts in
the process.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1146153005
Diffstat (limited to 'xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp')
-rw-r--r-- | xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp b/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp index d51b1faabf..d953e2bbe3 100644 --- a/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp +++ b/xfa/src/fxfa/src/app/xfa_ffwidgetacc.cpp @@ -382,7 +382,7 @@ FX_INT32 CXFA_WidgetAcc::ProcessEvent(CXFA_Event& event, CXFA_EventParam* pEvent break;
case XFA_ELEMENT_Submit: {
CXFA_Submit submit = event.GetSubmit();
- return GetDoc()->GetDocProvider()->SubmitData((XFA_HDOC)GetDoc(), submit);
+ return GetDoc()->GetDocProvider()->SubmitData(GetDoc(), submit);
}
default:
break;
@@ -1549,7 +1549,7 @@ IFX_Font* CXFA_WidgetAcc::GetFDEFont() font.GetTypeface(wsFontName);
}
CXFA_FFDoc* pDoc = GetDoc();
- return pDoc->GetApp()->GetXFAFontMgr()->GetFont((XFA_HDOC)pDoc, wsFontName, dwFontStyle);
+ return pDoc->GetApp()->GetXFAFontMgr()->GetFont(pDoc, wsFontName, dwFontStyle);
}
FX_FLOAT CXFA_WidgetAcc::GetFontSize()
{
|