From 69e19e2c0b6753a69470840226456858cdef5773 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 7 Aug 2018 23:24:09 +0000 Subject: Make CPDF_Font::GetFontBBox() return the bounding box. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Instead of using an out parameter. Fix nits in the only caller as well. Change-Id: I04eb92705b2fbda001191c36da972eee499acbc7 Reviewed-on: https://pdfium-review.googlesource.com/39490 Reviewed-by: Nicolás Peña Moreno Commit-Queue: Lei Zhang --- fpdfsdk/pwl/cpwl_edit.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fpdfsdk/pwl/cpwl_edit.h') diff --git a/fpdfsdk/pwl/cpwl_edit.h b/fpdfsdk/pwl/cpwl_edit.h index 3f9cd433f5..ce1d682dad 100644 --- a/fpdfsdk/pwl/cpwl_edit.h +++ b/fpdfsdk/pwl/cpwl_edit.h @@ -84,7 +84,7 @@ class CPWL_Edit : public CPWL_EditCtrl { bool IsTextFull() const; - static float GetCharArrayAutoFontSize(CPDF_Font* pFont, + static float GetCharArrayAutoFontSize(const CPDF_Font* pFont, const CFX_FloatRect& rcPlate, int32_t nCharArray); @@ -114,7 +114,6 @@ class CPWL_Edit : public CPWL_EditCtrl { bool IsVScrollBarVisible() const; void SetParamByFlag(); - float GetCharArrayAutoFontSize(int32_t nCharArray); CFX_PointF GetWordRightBottomPoint(const CPVT_WordPlace& wpWord); CPVT_WordRange CombineWordRange(const CPVT_WordRange& wr1, -- cgit v1.2.3