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 --- core/fpdfapi/font/cpdf_font.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/fpdfapi/font/cpdf_font.h b/core/fpdfapi/font/cpdf_font.h index d79b13fb6b..f246293c3e 100644 --- a/core/fpdfapi/font/cpdf_font.h +++ b/core/fpdfapi/font/cpdf_font.h @@ -72,7 +72,7 @@ class CPDF_Font { FXFT_Face GetFace() const { return m_Font.GetFace(); } void AppendChar(ByteString* str, uint32_t charcode) const; - void GetFontBBox(FX_RECT& rect) const { rect = m_FontBBox; } + const FX_RECT& GetFontBBox() const { return m_FontBBox; } int GetTypeAscent() const { return m_Ascent; } int GetTypeDescent() const { return m_Descent; } uint32_t GetStringWidth(const ByteStringView& pString); -- cgit v1.2.3