diff options
author | thestig <thestig@chromium.org> | 2016-06-01 20:18:41 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-06-01 20:18:41 -0700 |
commit | a31d4a90f3446df76d8d3ffa0b441db0ad4623af (patch) | |
tree | b66f6dafdb562a4aa5ec7364028c00e888836f20 /xfa/fgas/font/fgas_gefont.cpp | |
parent | dbdcb81a82cd9e46023a3ee500df75717c1a47b4 (diff) | |
download | pdfium-a31d4a90f3446df76d8d3ffa0b441db0ad4623af.tar.xz |
Change CFX_Font::GetPsName() to return a CFX_ByteString.
So everyone can avoid doing Byte to WideString conversions.
Also remove CFX_GEFont::GetPsName() and deduplicate a couple of
GetPsName() calls.
Review-Url: https://codereview.chromium.org/2019173002
Diffstat (limited to 'xfa/fgas/font/fgas_gefont.cpp')
-rw-r--r-- | xfa/fgas/font/fgas_gefont.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xfa/fgas/font/fgas_gefont.cpp b/xfa/fgas/font/fgas_gefont.cpp index 6453a591b5..803bede6e5 100644 --- a/xfa/fgas/font/fgas_gefont.cpp +++ b/xfa/fgas/font/fgas_gefont.cpp @@ -336,9 +336,7 @@ void CFX_GEFont::GetFamilyName(CFX_WideString& wsFamily) const { m_pFont->GetSubstFont()->m_Family.AsStringC()); } } -void CFX_GEFont::GetPsName(CFX_WideString& wsName) const { - wsName = m_pFont->GetPsName(); -} + uint32_t CFX_GEFont::GetFontStyles() const { ASSERT(m_pFont != NULL); #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ |