summaryrefslogtreecommitdiff
path: root/core/src/fpdfdoc/doc_link.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-04-16 14:13:14 -0700
committerTom Sepez <tsepez@chromium.org>2015-04-16 14:13:14 -0700
commit357d16f8453c2cf0c0afd00eec9e86d03d55fe69 (patch)
tree7a8fe29a921ae4a9dfc6063fd126c6c62181686f /core/src/fpdfdoc/doc_link.cpp
parent269aaa26f33891f42934fa4f3e4ca3e320018a21 (diff)
downloadpdfium-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_link.cpp')
-rw-r--r--core/src/fpdfdoc/doc_link.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/core/src/fpdfdoc/doc_link.cpp b/core/src/fpdfdoc/doc_link.cpp
index 4a42e21388..9a08d1583e 100644
--- a/core/src/fpdfdoc/doc_link.cpp
+++ b/core/src/fpdfdoc/doc_link.cpp
@@ -24,10 +24,7 @@ CFX_PtrArray* CPDF_LinkList::GetPageLinks(CPDF_Page* pPage)
}
CFX_PtrArray* pPageLinkList = NULL;
if (!m_PageMap.Lookup((FX_LPVOID)(FX_UINTPTR)objnum, (FX_LPVOID&)pPageLinkList)) {
- pPageLinkList = FX_NEW CFX_PtrArray;
- if (pPageLinkList == NULL) {
- return NULL;
- }
+ pPageLinkList = new CFX_PtrArray;
m_PageMap.SetAt((FX_LPVOID)(FX_UINTPTR)objnum, pPageLinkList);
LoadPageLinks(pPage, pPageLinkList);
}