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

Issue 1672153002: Tidy fpdfsave.cpp (Closed)

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

Description

Tidy fpdfsave.cpp Remove CFX_PtrArray filelist. Promote ScopedFileStream to .h file and use it. Fix _CAPS names, bool returns, and put in anonymous namespace. FX_CreateMemoryStream() can't return null, so remove checks. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/7a73effb9fe071fbc852b30865d7a332e96fbd56

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -133 lines) Patch
M core/include/fpdfapi/fpdf_parser.h View 3 chunks +6 lines, -2 lines 1 comment Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser_unittest.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M fpdfsdk/src/fpdfsave.cpp View 8 chunks +75 lines, -82 lines 4 comments Download
M xfa/src/fxfa/src/app/xfa_ffdoc.cpp View 1 chunk +0 lines, -7 lines 0 comments Download
M xfa/src/fxfa/src/parser/xfa_object_imp.cpp View 4 chunks +22 lines, -32 lines 1 comment Download

Messages

Total messages: 15 (6 generated)
Tom Sepez
Lei, pls review. One less PtrArray picked up a bunch of other irresistible changes. https://codereview.chromium.org/1672153002/diff/1/fpdfsdk/src/fpdfsave.cpp ...
4 years, 10 months ago (2016-02-05 22:49:45 UTC) #6
Lei Zhang
https://codereview.chromium.org/1672153002/diff/1/core/include/fpdfapi/fpdf_parser.h File core/include/fpdfapi/fpdf_parser.h (right): https://codereview.chromium.org/1672153002/diff/1/core/include/fpdfapi/fpdf_parser.h#newcode43 core/include/fpdfapi/fpdf_parser.h:43: // TODO(thestig) Using unique_ptr with ReleaseDeleter is still not ...
4 years, 10 months ago (2016-02-05 23:22:43 UTC) #7
Lei Zhang
https://codereview.chromium.org/1672153002/diff/1/fpdfsdk/src/fpdfsave.cpp File fpdfsdk/src/fpdfsave.cpp (right): https://codereview.chromium.org/1672153002/diff/1/fpdfsdk/src/fpdfsave.cpp#newcode283 fpdfsdk/src/fpdfsave.cpp:283: std::vector<ScopedFileStream> fileList; Do we actually need to hold on ...
4 years, 10 months ago (2016-02-05 23:32:50 UTC) #8
Tom Sepez
https://codereview.chromium.org/1672153002/diff/1/fpdfsdk/src/fpdfsave.cpp File fpdfsdk/src/fpdfsave.cpp (right): https://codereview.chromium.org/1672153002/diff/1/fpdfsdk/src/fpdfsave.cpp#newcode283 fpdfsdk/src/fpdfsave.cpp:283: std::vector<ScopedFileStream> fileList; On 2016/02/05 23:32:49, Lei Zhang wrote: > ...
4 years, 10 months ago (2016-02-08 17:10:20 UTC) #9
Lei Zhang
So do you want to keep the ScopedFileStreamdef where it is? https://codereview.chromium.org/1672153002/diff/1/fpdfsdk/src/fpdfsave.cpp File fpdfsdk/src/fpdfsave.cpp (right): ...
4 years, 10 months ago (2016-02-08 20:10:29 UTC) #10
Lei Zhang
On 2016/02/08 20:10:29, Lei Zhang wrote: > So do you want to keep the ScopedFileStreamdef ...
4 years, 10 months ago (2016-02-08 20:10:50 UTC) #11
Tom Sepez
> Shall we move this to fx_stream.h where IFX_FileStream lives? Currentyly, there isn't any unique_ptr ...
4 years, 10 months ago (2016-02-08 20:45:35 UTC) #12
Lei Zhang
ok, lgtm
4 years, 10 months ago (2016-02-08 21:30:00 UTC) #13
Tom Sepez
4 years, 10 months ago (2016-02-08 21:40:01 UTC) #15
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
7a73effb9fe071fbc852b30865d7a332e96fbd56 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698