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

Issue 2517163003: Use more unique_ptrs in CPDF_Image. (Closed)

Created:
4 years, 1 month ago by Lei Zhang
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Use more unique_ptrs in CPDF_Image. Do the same in CPDF_TextObject. Discover CPDF_PageObject::Clone() is unnecessary and remove it. Committed: https://pdfium.googlesource.com/pdfium/+/6a1c9bd09ef8fdd2fe2f9e39b9a05f6581be9d87

Patch Set 1 #

Total comments: 1

Patch Set 2 : Cloning is mostly a sham #

Patch Set 3 : More unique_ptrs #

Total comments: 2

Patch Set 4 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -86 lines) Patch
M core/fpdfapi/page/cpdf_clippath.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_form.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M core/fpdfapi/page/cpdf_form.cpp View 1 1 chunk +0 lines, -9 lines 0 comments Download
M core/fpdfapi/page/cpdf_formobject.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_formobject.cpp View 1 1 chunk +0 lines, -9 lines 0 comments Download
M core/fpdfapi/page/cpdf_image.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_image.cpp View 1 2 3 3 chunks +2 lines, -20 lines 0 comments Download
M core/fpdfapi/page/cpdf_imageobject.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_imageobject.cpp View 1 1 chunk +0 lines, -9 lines 0 comments Download
M core/fpdfapi/page/cpdf_pageobject.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_pathobject.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_pathobject.cpp View 1 1 chunk +0 lines, -11 lines 0 comments Download
M core/fpdfapi/page/cpdf_shadingobject.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_shadingobject.cpp View 1 1 chunk +0 lines, -16 lines 0 comments Download
M core/fpdfapi/page/cpdf_textobject.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_textobject.cpp View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Tom Sepez
On 2016/11/21 23:31:59, Lei Zhang (Mostly OOO) wrote: > mailto:thestig@chromium.org changed reviewers: > + mailto:tsepez@chromium.org ...
4 years, 1 month ago (2016-11-21 23:36:04 UTC) #5
Tom Sepez
Looks good, let me know following rebase. https://codereview.chromium.org/2517163003/diff/40001/core/fpdfapi/page/cpdf_textobject.cpp File core/fpdfapi/page/cpdf_textobject.cpp (right): https://codereview.chromium.org/2517163003/diff/40001/core/fpdfapi/page/cpdf_textobject.cpp#newcode116 core/fpdfapi/page/cpdf_textobject.cpp:116: nit: no ...
4 years, 1 month ago (2016-11-21 23:38:22 UTC) #6
Lei Zhang
I'll wait a bit. https://codereview.chromium.org/2517163003/diff/1/core/fpdfapi/page/cpdf_imageobject.cpp File core/fpdfapi/page/cpdf_imageobject.cpp (right): https://codereview.chromium.org/2517163003/diff/1/core/fpdfapi/page/cpdf_imageobject.cpp#newcode28 core/fpdfapi/page/cpdf_imageobject.cpp:28: obj->m_pImageOwned = true; This seems ...
4 years, 1 month ago (2016-11-22 00:00:22 UTC) #9
Tom Sepez
Landed. Go for rebase.
4 years, 1 month ago (2016-11-22 00:23:27 UTC) #10
Lei Zhang
PTAL
4 years, 1 month ago (2016-11-22 00:30:09 UTC) #11
Tom Sepez
lgtm
4 years, 1 month ago (2016-11-22 00:37:38 UTC) #12
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/2517163003/60001
4 years, 1 month ago (2016-11-22 00:40:45 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 00:52:46 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/6a1c9bd09ef8fdd2fe2f9e39b9a05f6581be...

Powered by Google App Engine
This is Rietveld 408576698