From 1c23a6d78c95ff0714cda6f642420e0502edac29 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 12 Apr 2018 15:37:39 +0000 Subject: Make CFX_Font take FX_RECT out params by pointer. Change-Id: I6643aaf66bf3e9d53d5afab5c99a5cb7deab3661 Reviewed-on: https://pdfium-review.googlesource.com/30054 Reviewed-by: dsinclair Commit-Queue: Lei Zhang --- core/fxge/cfx_font.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxge/cfx_font.h') diff --git a/core/fxge/cfx_font.h b/core/fxge/cfx_font.h index c753e7e29d..1d17714b46 100644 --- a/core/fxge/cfx_font.h +++ b/core/fxge/cfx_font.h @@ -65,7 +65,7 @@ class CFX_Font { uint32_t GetGlyphWidth(uint32_t glyph_index); int GetAscent() const; int GetDescent() const; - bool GetGlyphBBox(uint32_t glyph_index, FX_RECT& bbox); + bool GetGlyphBBox(uint32_t glyph_index, FX_RECT* pBBox); bool IsItalic() const; bool IsBold() const; bool IsFixedWidth() const; @@ -74,7 +74,7 @@ class CFX_Font { ByteString GetFamilyName() const; ByteString GetFaceName() const; bool IsTTFont() const; - bool GetBBox(FX_RECT& bbox); + bool GetBBox(FX_RECT* pBBox); bool IsEmbedded() const { return m_bEmbedded; } uint8_t* GetSubData() const { return m_pGsubData.get(); } void SetSubData(uint8_t* data) { m_pGsubData.reset(data); } -- cgit v1.2.3