diff options
author | Lei Zhang <thestig@chromium.org> | 2015-09-11 13:13:31 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-09-11 13:13:31 -0700 |
commit | 6aca3e209ff6148f1d77b86b8b97d3bdf18e3eba (patch) | |
tree | 280c27ff9c75ded60b562f246973e8335e3b3b02 /core/src/fpdfapi/fpdf_font/ttgsubtable.cpp | |
parent | f9e40aec10263f9445d69598657f42550294d653 (diff) | |
download | pdfium-6aca3e209ff6148f1d77b86b8b97d3bdf18e3eba.tar.xz |
Cleanup casting of FX_Alloc() return values.
Also convert some FX_AllocOrDie() calls to FX_Alloc().
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1332173002 .
Diffstat (limited to 'core/src/fpdfapi/fpdf_font/ttgsubtable.cpp')
-rw-r--r-- | core/src/fpdfapi/fpdf_font/ttgsubtable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp index c45384feee..6c1b4263b1 100644 --- a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp +++ b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp @@ -393,7 +393,7 @@ IFX_GSUBTable* IFX_GSUBTable::Create(CFX_Font* pFont) { int error = FXFT_Load_Sfnt_Table( pFont->GetFace(), FT_MAKE_TAG('G', 'S', 'U', 'B'), 0, NULL, &length); if (!error) { - pFont->SetSubData((uint8_t*)FX_Alloc(uint8_t, length)); + pFont->SetSubData(FX_Alloc(uint8_t, length)); } if (!pFont->GetSubData()) { return NULL; |