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

Issue 1977093002: Make CFX_ByteString(const CFX_ByteStringC&) explicit. (Closed)

Created:
4 years, 7 months ago by Tom Sepez
Modified:
4 years, 7 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

Make CFX_ByteString(const CFX_ByteStringC&) explicit. Add missing helper function to CFX_ByteTextBuf to avoid the anti-pattern CFX_ByteString(sBuf.AsStringC()), using the name "Make" to indicate there's an allocation going on in this case. Change some method arguments to take pre-existing ByteStrings where possible. Committed: https://pdfium.googlesource.com/pdfium/+/71a452f8ce12e31cc4e0d8c7878567b0c7fc63c2

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : Actually make explicit. #

Patch Set 4 : First mac-only fix #

Total comments: 3

Patch Set 5 : Rebase, nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -227 lines) Patch
M core/fpdfapi/fpdf_page/fpdf_page_doc.cpp View 1 3 chunks +4 lines, -3 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M core/fpdfapi/fpdf_page/pageint.h View 2 chunks +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_document.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_security_handler.cpp View 3 chunks +17 lines, -19 lines 0 comments Download
M core/fpdfapi/fpdf_parser/cpdf_syntax_parser.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M core/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_parser/fpdf_parser_utility.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_text.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfdoc/cpvt_generateap.cpp View 1 7 chunks +8 lines, -8 lines 0 comments Download
M core/fpdfdoc/doc_action.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M core/fpdfdoc/doc_basic.cpp View 1 2 3 4 1 chunk +10 lines, -15 lines 0 comments Download
M core/fpdfdoc/doc_bookmark.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M core/fpdfdoc/doc_formfield.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fpdfdoc/doc_link.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M core/fpdfdoc/doc_ocg.cpp View 3 chunks +18 lines, -18 lines 0 comments Download
M core/fpdfdoc/doc_tagged.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M core/fpdfdoc/include/fpdf_doc.h View 1 chunk +1 line, -1 line 0 comments Download
M core/fxcodec/codec/fx_codec_icc.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fxcrt/fx_basic_bstring.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M core/fxcrt/fx_basic_buffer.cpp View 1 2 3 4 1 chunk +0 lines, -4 lines 0 comments Download
M core/fxcrt/fx_basic_utf.cpp View 1 chunk +5 lines, -6 lines 0 comments Download
M core/fxcrt/fx_xml_parser.cpp View 1 2 3 4 8 chunks +27 lines, -22 lines 0 comments Download
M core/fxcrt/include/fx_basic.h View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
M core/fxcrt/include/fx_string.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M core/fxcrt/include/fx_xml.h View 3 chunks +7 lines, -7 lines 0 comments Download
M core/fxge/ge/fx_ge_fontmap.cpp View 4 chunks +7 lines, -4 lines 0 comments Download
M core/fxge/ge/fx_ge_text.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M core/fxge/include/fx_font.h View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/formfiller/cba_fontmap.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M fpdfsdk/fpdf_transformpage.cpp View 1 chunk +11 lines, -13 lines 0 comments Download
M fpdfsdk/fpdfppo.cpp View 1 3 chunks +7 lines, -8 lines 0 comments Download
M fpdfsdk/fxedit/fxet_ap.cpp View 6 chunks +6 lines, -9 lines 0 comments Download
M fpdfsdk/fxedit/fxet_pageobjs.cpp View 1 8 chunks +11 lines, -11 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_Caret.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_Edit.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_Icon.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_Label.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_Utils.cpp View 23 chunks +22 lines, -27 lines 0 comments Download
M xfa/fwl/basewidget/fwl_editimp.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (5 generated)
Tom Sepez
Lei, for review.
4 years, 7 months ago (2016-05-13 22:46:06 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/1977093002/diff/60001/core/fpdfapi/fpdf_parser/cpdf_security_handler.cpp File core/fpdfapi/fpdf_parser/cpdf_security_handler.cpp (right): https://codereview.chromium.org/1977093002/diff/60001/core/fpdfapi/fpdf_parser/cpdf_security_handler.cpp#newcode178 core/fpdfapi/fpdf_parser/cpdf_security_handler.cpp:178: FX_BOOL CPDF_SecurityHandler::LoadDict(CPDF_Dictionary* pEncryptDict, For later - I wonder ...
4 years, 7 months ago (2016-05-13 23:49:55 UTC) #4
Tom Sepez
https://codereview.chromium.org/1977093002/diff/60001/core/fpdfdoc/doc_basic.cpp File core/fpdfdoc/doc_basic.cpp (right): https://codereview.chromium.org/1977093002/diff/60001/core/fpdfdoc/doc_basic.cpp#newcode519 core/fpdfdoc/doc_basic.cpp:519: if (nPage > 0 && nPage <= nPages) On ...
4 years, 7 months ago (2016-05-14 00:28:46 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977093002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977093002/100001
4 years, 7 months ago (2016-05-14 00:29:16 UTC) #8
commit-bot: I haz the power
4 years, 7 months ago (2016-05-14 00:51:31 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://pdfium.googlesource.com/pdfium/+/71a452f8ce12e31cc4e0d8c7878567b0c7fc...

Powered by Google App Engine
This is Rietveld 408576698