summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_edit
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-20 12:02:32 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-20 12:02:32 -0700
commit5b7c9bbf6c26ca272706814ad3598894ce5e4e3b (patch)
treec70a3495741e94684e45c10d6d0fbe06306fda06 /core/fpdfapi/fpdf_edit
parenta6df44456956914e86b9d9af722b30628c45f208 (diff)
downloadpdfium-5b7c9bbf6c26ca272706814ad3598894ce5e4e3b.tar.xz
Re-land "Make CPDF_IndirectObjectHolder use unique_ptr to objects""
This reverts commit 81e1e3fd2d33478733e47bd007b76fac1a663e74. Review-Url: https://codereview.chromium.org/2353013003
Diffstat (limited to 'core/fpdfapi/fpdf_edit')
-rw-r--r--core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
index cab99ecf7f..36f622664d 100644
--- a/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
+++ b/core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp
@@ -1365,7 +1365,7 @@ void CPDF_Creator::InitNewObjNumOffsets() {
FX_BOOL bNoOriginal = (m_dwFlags & FPDFCREATE_NO_ORIGINAL) != 0;
for (const auto& pair : *m_pDocument) {
const uint32_t objnum = pair.first;
- const CPDF_Object* pObj = pair.second;
+ const CPDF_Object* pObj = pair.second.get();
if (bIncremental || pObj->GetObjNum() == CPDF_Object::kInvalidObjNum)
continue;
if (m_pParser && m_pParser->IsValidObjectNumber(objnum) &&