diff options
author | tsepez <tsepez@chromium.org> | 2016-11-04 15:45:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-04 15:45:03 -0700 |
commit | 1d08c50d1c20798001a1944e8a1fd76d09643ef1 (patch) | |
tree | 062d248591c5b201f00a50c09995e94c09794bc2 /core/fpdfapi/parser/cpdf_document_unittest.cpp | |
parent | c5267c54ea32ade03bf10e6bb203e34e3fcbd77d (diff) | |
download | pdfium-1d08c50d1c20798001a1944e8a1fd76d09643ef1.tar.xz |
CHECK for re-addition of indirect objects
Review-Url: https://codereview.chromium.org/2471263005
Diffstat (limited to 'core/fpdfapi/parser/cpdf_document_unittest.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_document_unittest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/cpdf_document_unittest.cpp b/core/fpdfapi/parser/cpdf_document_unittest.cpp index 71716a649e..16d0ade069 100644 --- a/core/fpdfapi/parser/cpdf_document_unittest.cpp +++ b/core/fpdfapi/parser/cpdf_document_unittest.cpp @@ -69,8 +69,7 @@ class CPDF_TestDocumentForPages : public CPDF_Document { CPDF_Dictionary* pagesDict = CreatePageTreeNode(allPages, this, 7); m_pOwnedRootDict.reset(new CPDF_Dictionary()); - m_pOwnedRootDict->SetReferenceFor("Pages", this, - AddIndirectObject(pagesDict)); + m_pOwnedRootDict->SetReferenceFor("Pages", this, pagesDict->GetObjNum()); m_pRootDict = m_pOwnedRootDict.get(); m_PageList.SetSize(7); } |