From 2c7f71acbca135cf7a63e9fd30e45f430259807f Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Thu, 3 May 2018 18:48:13 +0000 Subject: Use pointers instead of refs in CXFA_TextLayout params. Change-Id: Iaca5983f080d8a05d2d4e9f79c335c4ebcdc6899 Reviewed-on: https://pdfium-review.googlesource.com/31994 Reviewed-by: Lei Zhang Commit-Queue: Henrique Nakashima --- xfa/fxfa/cxfa_textlayout.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xfa/fxfa/cxfa_textlayout.h') diff --git a/xfa/fxfa/cxfa_textlayout.h b/xfa/fxfa/cxfa_textlayout.h index 40b64a7ca0..8329e06352 100644 --- a/xfa/fxfa/cxfa_textlayout.h +++ b/xfa/fxfa/cxfa_textlayout.h @@ -67,14 +67,14 @@ class CXFA_TextLayout { float fLineWidth, CFX_XMLNode* pXMLNode, CFX_CSSComputedStyle* pParentStyle); - bool Loader(float textWidth, float& fLinePos, bool bSavePieces); + bool Loader(float textWidth, float* pLinePos, bool bSavePieces); void LoadText(CXFA_Node* pNode, float textWidth, - float& fLinePos, + float* pLinePos, bool bSavePieces); bool LoadRichText(CFX_XMLNode* pXMLNode, float textWidth, - float& fLinePos, + float* pLinePos, const RetainPtr& pParentStyle, bool bSavePieces, RetainPtr pLinkData, @@ -82,14 +82,14 @@ class CXFA_TextLayout { bool bIsOl = false, int32_t iLiCount = 0); bool AppendChar(const WideString& wsText, - float& fLinePos, + float* pLinePos, float fSpaceAbove, bool bSavePieces); void AppendTextLine(CFX_BreakType dwStatus, - float& fLinePos, + float* pLinePos, bool bSavePieces, bool bEndBreak = false); - void EndBreak(CFX_BreakType dwStatus, float& fLinePos, bool bDefault); + void EndBreak(CFX_BreakType dwStatus, float* pLinePos, bool bDefault); bool IsEnd(bool bSavePieces); void ProcessText(WideString& wsText); void UpdateAlign(float fHeight, float fBottom); -- cgit v1.2.3