Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Issue 2350263002: Make CPDF_IndirectObjectHolder use unique_ptr to objects (Closed)

Created:
4 years, 3 months ago by Tom Sepez
Modified:
4 years, 3 months ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Make CPDF_IndirectObjectHolder use unique_ptr to objects The objects it is given are owned by it and are simply deleted without regard to Release() used by others. Committed: https://pdfium.googlesource.com/pdfium/+/c8544d634a1993e2592e41458be215fcd0956031

Patch Set 1 #

Patch Set 2 : Leave my name alone please #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -25 lines) Patch
M core/fpdfapi/fpdf_edit/fpdf_edit_create.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/cfdf_document.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp View 1 5 chunks +8 lines, -18 lines 4 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_indirect_object_holder.h View 1 4 chunks +4 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_parser/include/cpdf_object.h View 2 chunks +2 lines, -0 lines 2 comments Download

Messages

Total messages: 11 (6 generated)
Tom Sepez
https://codereview.chromium.org/2350263002/diff/20001/core/fpdfapi/fpdf_parser/include/cpdf_object.h File core/fpdfapi/fpdf_parser/include/cpdf_object.h (right): https://codereview.chromium.org/2350263002/diff/20001/core/fpdfapi/fpdf_parser/include/cpdf_object.h#newcode96 core/fpdfapi/fpdf_parser/include/cpdf_object.h:96: friend struct std::default_delete<CPDF_Object>; Note: we have this in several ...
4 years, 3 months ago (2016-09-19 20:08:02 UTC) #5
dsinclair
lgtm w/ possible followup nits https://codereview.chromium.org/2350263002/diff/20001/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp File core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp (right): https://codereview.chromium.org/2350263002/diff/20001/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp#newcode45 core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp:45: uint32_t CPDF_IndirectObjectHolder::AddIndirectObject(CPDF_Object* pObj) { ...
4 years, 3 months ago (2016-09-19 20:13:47 UTC) #6
Tom Sepez
https://codereview.chromium.org/2350263002/diff/20001/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp File core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp (right): https://codereview.chromium.org/2350263002/diff/20001/core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp#newcode45 core/fpdfapi/fpdf_parser/cpdf_indirect_object_holder.cpp:45: uint32_t CPDF_IndirectObjectHolder::AddIndirectObject(CPDF_Object* pObj) { On 2016/09/19 20:13:47, dsinclair wrote: ...
4 years, 3 months ago (2016-09-19 20:36:35 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2350263002/20001
4 years, 3 months ago (2016-09-19 20:37:14 UTC) #9
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 21:05:08 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/c8544d634a1993e2592e41458be215fcd095...

Powered by Google App Engine
This is Rietveld 408576698