summaryrefslogtreecommitdiff
path: root/core/src/fpdfdoc/doc_tagged.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-01 15:08:10 -0700
committerLei Zhang <thestig@chromium.org>2015-10-01 15:08:10 -0700
commit24a3b4ea99a40cc251b68561469b9099419adfe9 (patch)
tree17aaf6ab021ee43d1ba4f665b8047775dd303950 /core/src/fpdfdoc/doc_tagged.cpp
parente95f39f10400746f0dc49c8afe3b3f21cdbbf381 (diff)
downloadpdfium-24a3b4ea99a40cc251b68561469b9099419adfe9.tar.xz
XFA: Remove tests for failures after new statements.
Manual merge of commit 357d16f8453c2cf0c0afd00eec9e86d03d55fe69. Original code review: https://codereview.chromium.org/1090693002 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1379683006 .
Diffstat (limited to 'core/src/fpdfdoc/doc_tagged.cpp')
-rw-r--r--core/src/fpdfdoc/doc_tagged.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/core/src/fpdfdoc/doc_tagged.cpp b/core/src/fpdfdoc/doc_tagged.cpp
index d8e24c78b3..facad46886 100644
--- a/core/src/fpdfdoc/doc_tagged.cpp
+++ b/core/src/fpdfdoc/doc_tagged.cpp
@@ -20,9 +20,6 @@ CPDF_StructTree* CPDF_StructTree::LoadPage(const CPDF_Document* pDoc,
return NULL;
}
CPDF_StructTreeImpl* pTree = new CPDF_StructTreeImpl(pDoc);
- if (pTree == NULL) {
- return NULL;
- }
pTree->LoadPageTree(pPageDict);
return pTree;
}
@@ -31,9 +28,6 @@ CPDF_StructTree* CPDF_StructTree::LoadDoc(const CPDF_Document* pDoc) {
return NULL;
}
CPDF_StructTreeImpl* pTree = new CPDF_StructTreeImpl(pDoc);
- if (pTree == NULL) {
- return NULL;
- }
pTree->LoadDocTree();
return pTree;
}
@@ -63,9 +57,6 @@ void CPDF_StructTreeImpl::LoadDocTree() {
if (pKids->GetType() == PDFOBJ_DICTIONARY) {
CPDF_StructElementImpl* pStructElementImpl =
new CPDF_StructElementImpl(this, NULL, (CPDF_Dictionary*)pKids);
- if (pStructElementImpl == NULL) {
- return;
- }
m_Kids.Add(pStructElementImpl);
return;
}
@@ -77,9 +68,6 @@ void CPDF_StructTreeImpl::LoadDocTree() {
CPDF_Dictionary* pKid = pArray->GetDict(i);
CPDF_StructElementImpl* pStructElementImpl =
new CPDF_StructElementImpl(this, NULL, pKid);
- if (pStructElementImpl == NULL) {
- return;
- }
m_Kids.Add(pStructElementImpl);
}
}
@@ -138,9 +126,6 @@ CPDF_StructElementImpl* CPDF_StructTreeImpl::AddPageNode(CPDF_Dictionary* pDict,
return pElement;
}
pElement = new CPDF_StructElementImpl(this, NULL, pDict);
- if (pElement == NULL) {
- return NULL;
- }
map.SetAt(pDict, pElement);
CPDF_Dictionary* pParent = pDict->GetDict(FX_BSTRC("P"));
if (pParent == NULL ||