diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-04-16 14:13:14 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-04-16 14:13:14 -0700 |
commit | 357d16f8453c2cf0c0afd00eec9e86d03d55fe69 (patch) | |
tree | 7a8fe29a921ae4a9dfc6063fd126c6c62181686f /core/src/fpdfdoc/doc_metadata.cpp | |
parent | 269aaa26f33891f42934fa4f3e4ca3e320018a21 (diff) | |
download | pdfium-357d16f8453c2cf0c0afd00eec9e86d03d55fe69.tar.xz |
Replace FX_NEW with new, remove tests in fpdfdoc.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1090693002
Diffstat (limited to 'core/src/fpdfdoc/doc_metadata.cpp')
-rw-r--r-- | core/src/fpdfdoc/doc_metadata.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/core/src/fpdfdoc/doc_metadata.cpp b/core/src/fpdfdoc/doc_metadata.cpp index 232f6eea21..e6c7a641e6 100644 --- a/core/src/fpdfdoc/doc_metadata.cpp +++ b/core/src/fpdfdoc/doc_metadata.cpp @@ -28,14 +28,13 @@ CPDF_Metadata::CPDF_Metadata() { m_pData = FX_Alloc(PDFDOC_METADATA, 1); CFX_CMapByteStringToPtr *&pStringMap = ((PDFDOC_LPMETADATA)m_pData)->m_pStringMap; - pStringMap = FX_NEW CFX_CMapByteStringToPtr; - if (pStringMap != NULL) { - CFX_ByteString bstr; - for (int i = 0; i < 18; i += 2) { - bstr = gs_FPDFDOC_Metadata_Titles[i]; - pStringMap->AddValue(bstr, (void*)gs_FPDFDOC_Metadata_Titles[i + 1]); - } + pStringMap = new CFX_CMapByteStringToPtr; + CFX_ByteString bstr; + for (int i = 0; i < 18; i += 2) { + bstr = gs_FPDFDOC_Metadata_Titles[i]; + pStringMap->AddValue(bstr, (void*)gs_FPDFDOC_Metadata_Titles[i + 1]); } + } CPDF_Metadata::~CPDF_Metadata() { |