summaryrefslogtreecommitdiff
path: root/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-04-16 14:37:47 -0700
committerTom Sepez <tsepez@chromium.org>2015-04-16 14:37:47 -0700
commit5c357a5d3d873be6b0ab01d7bec82f79d0a09f0e (patch)
tree05e79b45a3e8387414c10fda267d6abc381a4dcd /core/src/fpdfapi/fpdf_font/ttgsubtable.cpp
parent7f6b6677665588a27b9d14babc6358840454ce17 (diff)
downloadpdfium-5c357a5d3d873be6b0ab01d7bec82f79d0a09f0e.tar.xz
Replace FX_NEW with new, remove tests from fpdfapi
Very few places where a change is required, but remove FX_NEW to show they've been audited. R=thestig@chromium.org Review URL: https://codereview.chromium.org/1075953004
Diffstat (limited to 'core/src/fpdfapi/fpdf_font/ttgsubtable.cpp')
-rw-r--r--core/src/fpdfapi/fpdf_font/ttgsubtable.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp
index e317aa67fd..ae67d2f0ef 100644
--- a/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp
+++ b/core/src/fpdfapi/fpdf_font/ttgsubtable.cpp
@@ -439,10 +439,7 @@ IFX_GSUBTable* FXGE_CreateGSUBTable(CFX_Font* pFont)
}
int error = FXFT_Load_Sfnt_Table(pFont->m_Face, FT_MAKE_TAG('G', 'S', 'U', 'B'), 0, pFont->m_pGsubData, NULL);
if (!error && pFont->m_pGsubData) {
- CFX_GSUBTable* pGsubTable = FX_NEW CFX_GSUBTable;
- if (!pGsubTable) {
- return NULL;
- }
+ CFX_GSUBTable* pGsubTable = new CFX_GSUBTable;
if (pGsubTable->m_GsubImp.LoadGSUBTable((FT_Bytes)pFont->m_pGsubData)) {
return pGsubTable;
}