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

Issue 2119013002: Change class member variables in raw pointer type into unique_ptr (Closed)

Created:
4 years, 5 months ago by Wei Li
Modified:
4 years, 5 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Change class member variables in raw pointer type into unique_ptr Also did some cleanups such as removing an unused member variables and some unused structs. BUG=pdfium:518 Committed: https://pdfium.googlesource.com/pdfium/+/44105d862bfcaf9fce0ee0dfe283337bf5980337

Patch Set 1 #

Patch Set 2 : more changes #

Patch Set 3 : fix inline funcs #

Total comments: 4

Patch Set 4 : rebase #

Patch Set 5 : fix test #

Total comments: 4

Patch Set 6 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -204 lines) Patch
M core/fpdfapi/fpdf_font/cpdf_font.cpp View 4 chunks +1 line, -7 lines 0 comments Download
M core/fpdfapi/fpdf_font/font_int.h View 1 chunk +0 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_font/fpdf_font_cid.cpp View 2 chunks +2 lines, -13 lines 0 comments Download
M core/fpdfapi/fpdf_font/include/cpdf_font.h View 2 chunks +3 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_font/ttgsubtable.h View 1 2 3 4 15 chunks +38 lines, -84 lines 0 comments Download
M core/fpdfapi/fpdf_font/ttgsubtable.cpp View 1 2 3 4 5 20 chunks +71 lines, -89 lines 0 comments Download
M core/fpdfapi/fpdf_page/cpdf_formobject.cpp View 2 chunks +3 lines, -5 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_page/include/cpdf_formobject.h View 2 chunks +3 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (7 generated)
Wei Li
for review, thanks
4 years, 5 months ago (2016-07-02 01:01:23 UTC) #3
Lei Zhang
Still got a couple of red bots.
4 years, 5 months ago (2016-07-02 02:05:34 UTC) #4
Lei Zhang
https://codereview.chromium.org/2119013002/diff/40001/core/fpdfapi/fpdf_font/ttgsubtable.h File core/fpdfapi/fpdf_font/ttgsubtable.h (right): https://codereview.chromium.org/2119013002/diff/40001/core/fpdfapi/fpdf_font/ttgsubtable.h#newcode55 core/fpdfapi/fpdf_font/ttgsubtable.h:55: std::unique_ptr<uint16_t[]> FeatureIndex; std::vector?
4 years, 5 months ago (2016-07-02 02:07:53 UTC) #5
Wei Li
Fixed red bots, PTAL, thanks https://codereview.chromium.org/2119013002/diff/40001/core/fpdfapi/fpdf_font/ttgsubtable.h File core/fpdfapi/fpdf_font/ttgsubtable.h (right): https://codereview.chromium.org/2119013002/diff/40001/core/fpdfapi/fpdf_font/ttgsubtable.h#newcode55 core/fpdfapi/fpdf_font/ttgsubtable.h:55: std::unique_ptr<uint16_t[]> FeatureIndex; On 2016/07/02 ...
4 years, 5 months ago (2016-07-06 22:48:08 UTC) #6
Lei Zhang
lgtm, maybe we can do std::vector some other time. https://codereview.chromium.org/2119013002/diff/40001/core/fpdfapi/fpdf_font/ttgsubtable.h File core/fpdfapi/fpdf_font/ttgsubtable.h (right): https://codereview.chromium.org/2119013002/diff/40001/core/fpdfapi/fpdf_font/ttgsubtable.h#newcode55 core/fpdfapi/fpdf_font/ttgsubtable.h:55: ...
4 years, 5 months ago (2016-07-06 23:19:56 UTC) #7
Lei Zhang
On 2016/07/06 23:19:56, Lei Zhang wrote: > - May be able to use more easily ...
4 years, 5 months ago (2016-07-06 23:20:27 UTC) #8
Wei Li
thanks https://codereview.chromium.org/2119013002/diff/40001/core/fpdfapi/fpdf_font/ttgsubtable.h File core/fpdfapi/fpdf_font/ttgsubtable.h (right): https://codereview.chromium.org/2119013002/diff/40001/core/fpdfapi/fpdf_font/ttgsubtable.h#newcode55 core/fpdfapi/fpdf_font/ttgsubtable.h:55: std::unique_ptr<uint16_t[]> FeatureIndex; On 2016/07/06 23:19:56, Lei Zhang wrote: ...
4 years, 5 months ago (2016-07-07 00:03:35 UTC) #9
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/2119013002/100001
4 years, 5 months ago (2016-07-07 00:48:07 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_xfa_clang on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/win_xfa_clang/builds/105)
4 years, 5 months ago (2016-07-07 01:01:42 UTC) #14
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/2119013002/100001
4 years, 5 months ago (2016-07-07 01:07:11 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-07 01:10:40 UTC) #18
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/44105d862bfcaf9fce0ee0dfe283337bf598...

Powered by Google App Engine
This is Rietveld 408576698