summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_font
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-03-25 13:42:34 -0700
committerTom Sepez <tsepez@chromium.org>2016-03-25 13:42:34 -0700
commit46c8b1e3202ab5ae3663141dc25bec3b4360322e (patch)
treec12b4979cf1bd8f2930175a986e6d7918e6b9c45 /core/fpdfapi/fpdf_font
parent86a61dc374e8abe351df03a1aa6665013cc39345 (diff)
downloadpdfium-46c8b1e3202ab5ae3663141dc25bec3b4360322e.tar.xz
Replace CFX_DWordArray with CFX_ArrayTemplate<FX_DWORD>.
First step to getting rid of FX_DWORD. R=ochang@chromium.org Review URL: https://codereview.chromium.org/1832113003 .
Diffstat (limited to 'core/fpdfapi/fpdf_font')
-rw-r--r--core/fpdfapi/fpdf_font/cpdf_cidfont.cpp2
-rw-r--r--core/fpdfapi/fpdf_font/cpdf_cidfont.h6
2 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp b/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp
index d528017779..956046c3be 100644
--- a/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp
+++ b/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp
@@ -812,7 +812,7 @@ void CPDF_CIDFont::LoadSubstFont() {
g_CharsetCPs[m_Charset], IsVertWriting());
}
void CPDF_CIDFont::LoadMetricsArray(CPDF_Array* pArray,
- CFX_DWordArray& result,
+ CFX_ArrayTemplate<FX_DWORD>& result,
int nElements) {
int width_status = 0;
int iCurElement = 0;
diff --git a/core/fpdfapi/fpdf_font/cpdf_cidfont.h b/core/fpdfapi/fpdf_font/cpdf_cidfont.h
index 6ff7c825d2..6405d2c342 100644
--- a/core/fpdfapi/fpdf_font/cpdf_cidfont.h
+++ b/core/fpdfapi/fpdf_font/cpdf_cidfont.h
@@ -63,7 +63,7 @@ class CPDF_CIDFont : public CPDF_Font {
protected:
int GetGlyphIndex(FX_DWORD unicodeb, FX_BOOL* pVertGlyph);
void LoadMetricsArray(CPDF_Array* pArray,
- CFX_DWordArray& result,
+ CFX_ArrayTemplate<FX_DWORD>& result,
int nElements);
void LoadSubstFont();
FX_WCHAR GetUnicodeFromCharCode(FX_DWORD charcode) const;
@@ -78,10 +78,10 @@ class CPDF_CIDFont : public CPDF_Font {
uint16_t m_DefaultWidth;
uint16_t* m_pAnsiWidths;
FX_SMALL_RECT m_CharBBox[256];
- CFX_DWordArray m_WidthList;
+ CFX_ArrayTemplate<FX_DWORD> m_WidthList;
short m_DefaultVY;
short m_DefaultW1;
- CFX_DWordArray m_VertMetrics;
+ CFX_ArrayTemplate<FX_DWORD> m_VertMetrics;
FX_BOOL m_bAdobeCourierStd;
CFX_CTTGSUBTable* m_pTTGSUBTable;
};