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

Issue 1411043003: Convert some pointers in fpdf_parser_parser to unique_ptr and std::vector. (Closed)

Created:
5 years, 1 month ago by Oliver Chang
Modified:
5 years, 1 month ago
Reviewers:
Lei Zhang, Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Convert some pointers in fpdf_parser_parser to unique_ptr and std::vector. R=thestig@chromium.org, tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/bef190fcacb7dde4fedc1360e3019ab9968db16a

Patch Set 1 #

Patch Set 2 : line length #

Patch Set 3 : cleanup #

Patch Set 4 : line length again #

Total comments: 12

Patch Set 5 : address comments #

Patch Set 6 : const #

Patch Set 7 : fix derp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -55 lines) Patch
M core/include/fpdfapi/fpdf_parser.h View 1 2 3 5 chunks +10 lines, -5 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 1 2 3 4 5 6 12 chunks +29 lines, -50 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Oliver Chang
ptal
5 years, 1 month ago (2015-10-23 23:26:12 UTC) #3
Lei Zhang
There's probably more opportunities for various methods to take or return unique_ptr instead of raw ...
5 years, 1 month ago (2015-10-23 23:41:44 UTC) #5
Oliver Chang
yeah let's leave the opportunity to fix other things in future CLs https://codereview.chromium.org/1411043003/diff/80001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp ...
5 years, 1 month ago (2015-10-24 00:23:36 UTC) #6
Lei Zhang
lgtm https://codereview.chromium.org/1411043003/diff/80001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/1411043003/diff/80001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode441 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:441: int32_t recordsize = 20; On 2015/10/24 00:23:35, Oliver ...
5 years, 1 month ago (2015-10-24 00:26:04 UTC) #7
Oliver Chang
https://codereview.chromium.org/1411043003/diff/80001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp File core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp (right): https://codereview.chromium.org/1411043003/diff/80001/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp#newcode441 core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:441: int32_t recordsize = 20; On 2015/10/24 00:26:04, Lei Zhang ...
5 years, 1 month ago (2015-10-24 00:29:00 UTC) #8
Oliver Chang
Committed patchset #7 (id:160001) manually as bef190fcacb7dde4fedc1360e3019ab9968db16a (presubmit successful).
5 years, 1 month ago (2015-10-24 00:56:42 UTC) #10
David Lattimore
When I pull this CL into our build system, I get compile errors on the ...
5 years, 1 month ago (2015-10-27 00:24:14 UTC) #11
Oliver Chang
On 2015/10/27 00:24:14, David Lattimore wrote: > When I pull this CL into our build ...
5 years, 1 month ago (2015-10-27 00:33:40 UTC) #12
Lei Zhang
5 years, 1 month ago (2015-10-30 08:03:38 UTC) #13
Message was sent while issue was closed.
On 2015/10/27 00:24:14, David Lattimore wrote:
> When I pull this CL into our build system, I get compile errors on the
> std::vector::data() calls when compiling for Android. vector::data() is only
> available in C++11. I'm not sure why I get the compilation error since we're
> passing -std=gnu++11. Before I try to figure out why, I'm wondering if this is
> allowed anyway since http://chromium-cpp.appspot.com/ says "All C++11 Standard
> Library features are currently banned"? Or is that page out of date?

I took the Chromium Android build, hacked the gyp files, and enabled building
pdfium_test. The output binary is for ARM, but it built fine with this CL and
didn't complain. Until we have an Android bot, period, and hopefully one that
can repo this build error, you'll have to be vigilant.

Powered by Google App Engine
This is Rietveld 408576698