summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_edit
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2016-09-19 14:17:02 -0700
committerTom Sepez <tsepez@chromium.org>2016-09-19 14:17:02 -0700
commit81e1e3fd2d33478733e47bd007b76fac1a663e74 (patch)
treee75e6600e3610a92d8f200c994b92e9d409faf88 /core/fpdfapi/fpdf_edit
parentc8544d634a1993e2592e41458be215fcd0956031 (diff)
downloadpdfium-81e1e3fd2d33478733e47bd007b76fac1a663e74.tar.xz
Revert "Make CPDF_IndirectObjectHolder use unique_ptr to objects"
This reverts commit c8544d634a1993e2592e41458be215fcd0956031. TBR=dsinclair@chromium.org Review URL: https://codereview.chromium.org/2355683002 .
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 36f622664d..cab99ecf7f 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.get();
+ const CPDF_Object* pObj = pair.second;
if (bIncremental || pObj->GetObjNum() == CPDF_Object::kInvalidObjNum)
continue;
if (m_pParser && m_pParser->IsValidObjectNumber(objnum) &&