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

Issue 2520133002: Remove some WrapUnique() calls by returing unique_ptrs (Closed)

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

Description

Remove some WrapUnique() calls by returing unique_ptrs Return these from underlying methods as appropriate. Committed: https://pdfium.googlesource.com/pdfium/+/06104a8abc71ecd824d6a461b6f6f31c32fd2135

Patch Set 1 #

Total comments: 1

Patch Set 2 : Old android toolchain #

Total comments: 7

Patch Set 3 : missing return #

Patch Set 4 : out-of-line constructor #

Patch Set 5 : Fix win build #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -141 lines) Patch
M core/fpdfapi/font/cpdf_fontencoding.h View 2 chunks +3 lines, -1 line 0 comments Download
M core/fpdfapi/font/cpdf_fontencoding.cpp View 3 chunks +11 lines, -12 lines 0 comments Download
M core/fpdfapi/page/cpdf_docpagedata.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M core/fpdfapi/page/cpdf_image.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/page/cpdf_image.cpp View 1 2 3 4 5 5 chunks +12 lines, -7 lines 0 comments Download
M core/fpdfapi/page/cpdf_streamcontentparser.h View 1 2 3 2 chunks +17 lines, -15 lines 0 comments Download
M core/fpdfapi/page/cpdf_streamcontentparser.cpp View 1 2 3 6 chunks +26 lines, -25 lines 0 comments Download
M core/fpdfapi/page/cpdf_streamparser.cpp View 1 2 8 chunks +35 lines, -45 lines 0 comments Download
M core/fpdfapi/page/pageint.h View 3 chunks +8 lines, -6 lines 0 comments Download
M core/fpdfapi/parser/cpdf_document.cpp View 1 2 3 4 8 chunks +20 lines, -19 lines 0 comments Download
M core/fpdfapi/parser/cpdf_parser.cpp View 1 chunk +12 lines, -5 lines 0 comments Download
M testing/libfuzzer/pdf_streamparser_fuzzer.cc View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (28 generated)
Tom Sepez
Dan, for review. https://codereview.chromium.org/2520133002/diff/1/core/fpdfapi/page/cpdf_streamcontentparser.h File core/fpdfapi/page/cpdf_streamcontentparser.h (right): https://codereview.chromium.org/2520133002/diff/1/core/fpdfapi/page/cpdf_streamcontentparser.h#newcode56 core/fpdfapi/page/cpdf_streamcontentparser.h:56: std::unique_ptr<CPDF_Object> m_pObject; note: made this into ...
4 years, 1 month ago (2016-11-21 22:11:14 UTC) #6
dsinclair
https://codereview.chromium.org/2520133002/diff/20001/core/fpdfapi/page/cpdf_streamparser.cpp File core/fpdfapi/page/cpdf_streamparser.cpp (right): https://codereview.chromium.org/2520133002/diff/20001/core/fpdfapi/page/cpdf_streamparser.cpp#newcode334 core/fpdfapi/page/cpdf_streamparser.cpp:334: pdfium::MakeUnique<CPDF_Name>(m_pPool, name); Missing return? https://codereview.chromium.org/2520133002/diff/20001/core/fpdfapi/page/cpdf_streamparser.cpp#newcode339 core/fpdfapi/page/cpdf_streamparser.cpp:339: pdfium::MakeUnique<CPDF_String>(m_pPool, str, false); ...
4 years, 1 month ago (2016-11-21 22:20:56 UTC) #9
Tom Sepez
https://codereview.chromium.org/2520133002/diff/20001/core/fpdfapi/page/cpdf_streamparser.cpp File core/fpdfapi/page/cpdf_streamparser.cpp (right): https://codereview.chromium.org/2520133002/diff/20001/core/fpdfapi/page/cpdf_streamparser.cpp#newcode334 core/fpdfapi/page/cpdf_streamparser.cpp:334: pdfium::MakeUnique<CPDF_Name>(m_pPool, name); On 2016/11/21 22:20:56, dsinclair wrote: > Missing ...
4 years, 1 month ago (2016-11-21 22:26:07 UTC) #11
dsinclair
On 2016/11/21 22:26:09, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 1 month ago (2016-11-21 22:51:00 UTC) #13
Tom Sepez
e unhappy: > > error: [chromium-style] Complex class/struct needs an explicit out-of-line > constructor. > ...
4 years, 1 month ago (2016-11-21 23:00:59 UTC) #18
dsinclair
lgtm
4 years, 1 month ago (2016-11-21 23:02:36 UTC) #19
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/2520133002/60001
4 years, 1 month ago (2016-11-21 23:03:39 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: win_xfa_clang_32 on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/win_xfa_clang_32/builds/218)
4 years, 1 month ago (2016-11-21 23:41:08 UTC) #24
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/2520133002/80001
4 years, 1 month ago (2016-11-21 23:54:48 UTC) #30
commit-bot: I haz the power
Failed to apply patch for core/fpdfapi/page/cpdf_image.cpp: While running git apply --index -p1; error: patch failed: ...
4 years, 1 month ago (2016-11-22 00:08:22 UTC) #34
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/2520133002/100001
4 years, 1 month ago (2016-11-22 00:10:15 UTC) #37
commit-bot: I haz the power
4 years, 1 month ago (2016-11-22 00:22:15 UTC) #40
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/06104a8abc71ecd824d6a461b6f6f31c32fd...

Powered by Google App Engine
This is Rietveld 408576698