diff options
Diffstat (limited to 'xfa/fgas/font/cfgas_pdffontmgr.cpp')
-rw-r--r-- | xfa/fgas/font/cfgas_pdffontmgr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fgas/font/cfgas_pdffontmgr.cpp b/xfa/fgas/font/cfgas_pdffontmgr.cpp index 2b3f54b6a1..4d34ac8284 100644 --- a/xfa/fgas/font/cfgas_pdffontmgr.cpp +++ b/xfa/fgas/font/cfgas_pdffontmgr.cpp @@ -78,8 +78,7 @@ RetainPtr<CFGAS_GEFont> CFGAS_PDFFontMgr::GetFont( CPDF_Font** pPDFFont, bool bStrictMatch) { uint32_t dwHashCode = FX_HashCode_GetW(wsFontFamily, false); - ByteString strKey; - strKey.Format("%u%u", dwHashCode, dwFontStyles); + ByteString strKey = ByteString::Format("%u%u", dwHashCode, dwFontStyles); auto it = m_FontMap.find(strKey); if (it != m_FontMap.end()) return it->second; |