From 20c62003660cc7bf7ab28a5e638556e22d5a525b Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Wed, 2 May 2018 20:46:38 +0000 Subject: Use pointers instead of refs for GetPopupPos() params. Change-Id: Ic19b91f91f08b1867437b22de04a2c54045ce8ae Reviewed-on: https://pdfium-review.googlesource.com/31992 Commit-Queue: Ryan Harrison Reviewed-by: Ryan Harrison --- xfa/fxfa/cxfa_fwladapterwidgetmgr.cpp | 4 ++-- xfa/fxfa/cxfa_fwladapterwidgetmgr.h | 2 +- xfa/fxfa/fxfa.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'xfa/fxfa') diff --git a/xfa/fxfa/cxfa_fwladapterwidgetmgr.cpp b/xfa/fxfa/cxfa_fwladapterwidgetmgr.cpp index befa8303a1..3d6b75b5e1 100644 --- a/xfa/fxfa/cxfa_fwladapterwidgetmgr.cpp +++ b/xfa/fxfa/cxfa_fwladapterwidgetmgr.cpp @@ -28,11 +28,11 @@ bool CXFA_FWLAdapterWidgetMgr::GetPopupPos(CFWL_Widget* pWidget, float fMinHeight, float fMaxHeight, const CFX_RectF& rtAnchor, - CFX_RectF& rtPopup) { + CFX_RectF* pPopupRect) { CXFA_FFWidget* pFFWidget = pWidget->GetLayoutItem(); CFX_RectF rtRotateAnchor = pFFWidget->GetRotateMatrix().TransformRect(rtAnchor); pFFWidget->GetDoc()->GetDocEnvironment()->GetPopupPos( - pFFWidget, fMinHeight, fMaxHeight, rtRotateAnchor, rtPopup); + pFFWidget, fMinHeight, fMaxHeight, rtRotateAnchor, pPopupRect); return true; } diff --git a/xfa/fxfa/cxfa_fwladapterwidgetmgr.h b/xfa/fxfa/cxfa_fwladapterwidgetmgr.h index f5c4ce160e..f0cc373b6c 100644 --- a/xfa/fxfa/cxfa_fwladapterwidgetmgr.h +++ b/xfa/fxfa/cxfa_fwladapterwidgetmgr.h @@ -22,7 +22,7 @@ class CXFA_FWLAdapterWidgetMgr { float fMinHeight, float fMaxHeight, const CFX_RectF& rtAnchor, - CFX_RectF& rtPopup); + CFX_RectF* pPopupRect); }; #endif // XFA_FXFA_CXFA_FWLADAPTERWIDGETMGR_H_ diff --git a/xfa/fxfa/fxfa.h b/xfa/fxfa/fxfa.h index 82ad90fc36..8a2c4e0296 100644 --- a/xfa/fxfa/fxfa.h +++ b/xfa/fxfa/fxfa.h @@ -218,7 +218,7 @@ class IXFA_DocEnvironment { float fMinPopup, float fMaxPopup, const CFX_RectF& rtAnchor, - CFX_RectF& rtPopup) = 0; + CFX_RectF* pPopupRect) = 0; virtual bool PopupMenu(CXFA_FFWidget* hWidget, CFX_PointF ptPopup) = 0; virtual void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags) = 0; virtual void WidgetPostAdd(CXFA_FFWidget* hWidget) = 0; -- cgit v1.2.3