diff options
author | thestig <thestig@chromium.org> | 2016-08-15 10:21:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-15 10:21:46 -0700 |
commit | 93ee11937bc2351882648f6aa1127883adbf0268 (patch) | |
tree | 066f009b0cfc721cd982e27a63f5270ccef68418 /core/fpdfapi/fpdf_font/include | |
parent | c4f3c0f183c9ce472cd22e831075c3897e14c3af (diff) | |
download | pdfium-93ee11937bc2351882648f6aa1127883adbf0268.tar.xz |
Use a std::vector in fpdf_font code.
Review-Url: https://codereview.chromium.org/2248453002
Diffstat (limited to 'core/fpdfapi/fpdf_font/include')
-rw-r--r-- | core/fpdfapi/fpdf_font/include/cpdf_font.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/fpdfapi/fpdf_font/include/cpdf_font.h b/core/fpdfapi/fpdf_font/include/cpdf_font.h index 390a3137b6..a76a6a2573 100644 --- a/core/fpdfapi/fpdf_font/include/cpdf_font.h +++ b/core/fpdfapi/fpdf_font/include/cpdf_font.h @@ -8,6 +8,7 @@ #define CORE_FPDFAPI_FPDF_FONT_INCLUDE_CPDF_FONT_H_ #include <memory> +#include <vector> #include "core/fxcrt/include/fx_string.h" #include "core/fxcrt/include/fx_system.h" @@ -103,14 +104,14 @@ class CPDF_Font { void LoadUnicodeMap() const; // logically const only. void LoadPDFEncoding(CPDF_Object* pEncoding, int& iBaseEncoding, - CFX_ByteString*& pCharNames, + std::vector<CFX_ByteString>* pCharNames, FX_BOOL bEmbedded, FX_BOOL bTrueType); void LoadFontDescriptor(CPDF_Dictionary* pDict); void CheckFontMetrics(); const FX_CHAR* GetAdobeCharName(int iBaseEncoding, - const CFX_ByteString* pCharNames, + const std::vector<CFX_ByteString>& charnames, int charcode); CFX_ByteString m_BaseFont; |