diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-17 13:57:46 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-17 13:57:46 -0700 |
commit | 48606843d54c5f870d69627afedd574b58d65b3e (patch) | |
tree | b8c8fe92e99f2deea542611dfb21e94a2c06541d /fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp | |
parent | 916228365f7f03a51e5fb0e4bab03fa708b107c5 (diff) | |
download | pdfium-48606843d54c5f870d69627afedd574b58d65b3e.tar.xz |
Replace FX_NEW with new, remove tests from fpdfsdk
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1089823004
Diffstat (limited to 'fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp')
-rw-r--r-- | fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp b/fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp index 8e10cc22e3..ad5a167f9a 100644 --- a/fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp +++ b/fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp @@ -172,9 +172,9 @@ void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAl CPDF_Dictionary* pAPDict = m_pAnnotDict->GetDict("AP"); - if (pAPDict == NULL) + if (pAPDict == NULL) { - pAPDict = FX_NEW CPDF_Dictionary; + pAPDict = new CPDF_Dictionary; m_pAnnotDict->SetAt("AP", pAPDict); } @@ -184,9 +184,9 @@ void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAl return; CPDF_Stream* pStream = pAPDict->GetStream(m_sAPType); - if (pStream == NULL) + if (pStream == NULL) { - pStream = FX_NEW CPDF_Stream(NULL, 0, NULL); + pStream = new CPDF_Stream(NULL, 0, NULL); FX_INT32 objnum = m_pDocument->AddIndirectObject(pStream); pAPDict->SetAtReference(m_sAPType, m_pDocument, objnum); } @@ -195,7 +195,7 @@ void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAl if (!pStreamDict) { - pStreamDict = FX_NEW CPDF_Dictionary; + pStreamDict = new CPDF_Dictionary; pStream->InitStream(NULL, 0, pStreamDict); } @@ -204,7 +204,7 @@ void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAl CPDF_Dictionary* pStreamResList = pStreamDict->GetDict("Resources"); if (!pStreamResList) { - pStreamResList = FX_NEW CPDF_Dictionary(); + pStreamResList = new CPDF_Dictionary(); pStreamDict->SetAt("Resources", pStreamResList); } @@ -213,7 +213,7 @@ void CBA_FontMap::AddFontToAnnotDict(CPDF_Font* pFont, const CFX_ByteString& sAl CPDF_Dictionary* pStreamResFontList = pStreamResList->GetDict("Font"); if (!pStreamResFontList) { - pStreamResFontList = FX_NEW CPDF_Dictionary; + pStreamResFontList = new CPDF_Dictionary; FX_INT32 objnum = m_pDocument->AddIndirectObject(pStreamResFontList); pStreamResList->SetAtReference("Font", m_pDocument, objnum); } |