diff options
author | tsepez <tsepez@chromium.org> | 2016-04-14 18:17:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-14 18:17:03 -0700 |
commit | b1c80fb8b843a2a345b2cd6005e591dc731355f4 (patch) | |
tree | 296e923c6a13f5321bcf52f83c69346c41020dbd /core/fpdfapi/fpdf_font/font_int.h | |
parent | 80b103bf53ee1249823e6bb3bed9cb2bc15ca67a (diff) | |
download | pdfium-b1c80fb8b843a2a345b2cd6005e591dc731355f4.tar.xz |
Avoid string allocs for CMap_GetString() return value.
StringC's are all that's needed here. Also CMap_GetString()
and GetCode() are side-effect free, so remove calls where
the value is not used.
Review URL: https://codereview.chromium.org/1889003002
Diffstat (limited to 'core/fpdfapi/fpdf_font/font_int.h')
-rw-r--r-- | core/fpdfapi/fpdf_font/font_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_font/font_int.h b/core/fpdfapi/fpdf_font/font_int.h index fc69b0cbd9..792377ebf0 100644 --- a/core/fpdfapi/fpdf_font/font_int.h +++ b/core/fpdfapi/fpdf_font/font_int.h @@ -22,7 +22,7 @@ typedef void* FXFT_Library; short TT2PDF(int m, FXFT_Face face); FX_BOOL FT_UseTTCharmap(FXFT_Face face, int platform_id, int encoding_id); -CIDSet CharsetFromOrdering(const CFX_ByteString& ordering); +CIDSet CharsetFromOrdering(const CFX_ByteStringC& ordering); class CPDF_CMapManager { public: |