diff options
Diffstat (limited to 'xfa/fxfa/cxfa_fontmgr.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_fontmgr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fxfa/cxfa_fontmgr.cpp b/xfa/fxfa/cxfa_fontmgr.cpp index d144bd2cb5..0956806698 100644 --- a/xfa/fxfa/cxfa_fontmgr.cpp +++ b/xfa/fxfa/cxfa_fontmgr.cpp @@ -28,8 +28,7 @@ RetainPtr<CFGAS_GEFont> CXFA_FontMgr::GetFont( const WideStringView& wsFontFamily, uint32_t dwFontStyles) { uint32_t dwHash = FX_HashCode_GetW(wsFontFamily, false); - ByteString bsKey; - bsKey.Format("%u%u%u", dwHash, dwFontStyles, 0xFFFF); + ByteString bsKey = ByteString::Format("%u%u%u", dwHash, dwFontStyles, 0xFFFF); auto iter = m_FontMap.find(bsKey); if (iter != m_FontMap.end()) return iter->second; |