From a94b40f73598b84063d121e29164d71b5d977fcc Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 14 Sep 2018 23:28:46 +0000 Subject: Use pdfium::Optional in CFGAS_GEFont. Change-Id: I1fe90d94ed782f59745dc47e38cda561c5b5ac47 Reviewed-on: https://pdfium-review.googlesource.com/42512 Reviewed-by: Tom Sepez Commit-Queue: Lei Zhang --- xfa/fgas/font/cfgas_gefont.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fgas/font/cfgas_gefont.cpp') diff --git a/xfa/fgas/font/cfgas_gefont.cpp b/xfa/fgas/font/cfgas_gefont.cpp index 6f33eb50fe..45119b7a98 100644 --- a/xfa/fgas/font/cfgas_gefont.cpp +++ b/xfa/fgas/font/cfgas_gefont.cpp @@ -121,8 +121,8 @@ WideString CFGAS_GEFont::GetFamilyName() const { uint32_t CFGAS_GEFont::GetFontStyles() const { ASSERT(m_pFont); - if (m_bUseLogFontStyle) - return m_dwLogFontStyle; + if (m_dwLogFontStyle.has_value()) + return m_dwLogFontStyle.value(); uint32_t dwStyles = 0; auto* pSubstFont = m_pFont->GetSubstFont(); -- cgit v1.2.3