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

Issue 1512763013: Get rid of most instance of 'foo != NULL' (Closed)

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

Description

Patch Set 1 : #

Patch Set 2 : rebase #

Total comments: 71

Patch Set 3 : rebase #

Patch Set 4 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -1028 lines) Patch
M core/include/fxcrt/fx_basic.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/include/fxcrt/fx_ext.h View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fdrm/crypto/fx_crypt_sha.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_edit/fpdf_edit_content.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_edit/fpdf_edit_create.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_edit/fpdf_edit_image.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_font/fpdf_font.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_font/ttgsubtable.h View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_page/fpdf_page_pattern.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_objects.cpp View 1 2 3 2 chunks +2 lines, -5 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render.cpp View 1 2 3 4 chunks +7 lines, -11 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_render/render_int.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfdoc/doc_action.cpp View 1 2 3 6 chunks +7 lines, -10 lines 0 comments Download
M core/src/fpdfdoc/doc_annot.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfdoc/doc_ap.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfdoc/doc_basic.cpp View 1 2 3 6 chunks +5 lines, -7 lines 0 comments Download
M core/src/fpdfdoc/doc_form.cpp View 1 2 3 12 chunks +11 lines, -13 lines 0 comments Download
M core/src/fpdfdoc/doc_formfield.cpp View 25 chunks +29 lines, -29 lines 0 comments Download
M core/src/fpdfdoc/doc_ocg.cpp View 1 2 3 3 chunks +2 lines, -4 lines 0 comments Download
M core/src/fpdfdoc/doc_utils.cpp View 1 2 6 chunks +8 lines, -8 lines 0 comments Download
M core/src/fpdfdoc/doc_vt.cpp View 14 chunks +13 lines, -21 lines 0 comments Download
M core/src/fxcodec/codec/fx_codec_jpeg.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M core/src/fxcrt/fx_basic_bstring.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M core/src/fxcrt/fx_basic_buffer.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M core/src/fxcrt/fx_basic_list.cpp View 1 2 3 5 chunks +6 lines, -7 lines 0 comments Download
M core/src/fxcrt/fx_basic_maps.cpp View 1 2 3 7 chunks +14 lines, -16 lines 0 comments Download
M core/src/fxcrt/fx_basic_plex.cpp View 1 2 3 1 chunk +4 lines, -5 lines 0 comments Download
M core/src/fxcrt/fx_basic_utf.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fxcrt/fx_basic_wstring.cpp View 1 2 5 chunks +5 lines, -5 lines 0 comments Download
M core/src/fxcrt/fx_extension.cpp View 9 chunks +9 lines, -9 lines 0 comments Download
M core/src/fxcrt/fx_xml_parser.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M core/src/fxcrt/xml_int.h View 1 chunk +1 line, -1 line 0 comments Download
M core/src/fxge/dib/fx_dib_main.cpp View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M core/src/fxge/ge/fx_ge_device.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M core/src/fxge/ge/fx_ge_ps.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M core/src/fxge/ge/fx_ge_text.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fxge/win32/fx_win32_device.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fxge/win32/fx_win32_dwrite.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M core/src/fxge/win32/fx_win32_gdipext.cpp View 1 2 4 chunks +5 lines, -5 lines 0 comments Download
M core/src/fxge/win32/fx_win32_print.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/formfiller/FFL_CBA_Fontmap.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_CheckBox.cpp View 1 2 3 3 chunks +4 lines, -14 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_ComboBox.cpp View 7 chunks +5 lines, -13 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_FormFiller.cpp View 1 2 10 chunks +10 lines, -12 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_IFormFiller.cpp View 1 2 3 33 chunks +16 lines, -80 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_ListBox.cpp View 6 chunks +2 lines, -6 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_RadioButton.cpp View 4 chunks +1 line, -10 lines 0 comments Download
M fpdfsdk/src/formfiller/FFL_TextField.cpp View 1 2 3 11 chunks +6 lines, -20 lines 0 comments Download
M fpdfsdk/src/fpdfformfill.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M fpdfsdk/src/fsdk_actionhandler.cpp View 13 chunks +3 lines, -59 lines 0 comments Download
M fpdfsdk/src/fsdk_annothandler.cpp View 1 2 3 31 chunks +14 lines, -40 lines 0 comments Download
M fpdfsdk/src/fsdk_baseannot.cpp View 1 2 5 chunks +0 lines, -14 lines 0 comments Download
M fpdfsdk/src/fsdk_baseform.cpp View 1 2 45 chunks +15 lines, -147 lines 0 comments Download
M fpdfsdk/src/fsdk_mgr.cpp View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/src/fxedit/fxet_ap.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M fpdfsdk/src/fxedit/fxet_edit.cpp View 10 chunks +3 lines, -17 lines 0 comments Download
M fpdfsdk/src/fxedit/fxet_list.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/src/fxedit/fxet_module.cpp View 2 chunks +1 line, -4 lines 0 comments Download
M fpdfsdk/src/javascript/Document.cpp View 17 chunks +0 lines, -39 lines 0 comments Download
M fpdfsdk/src/javascript/Field.cpp View 76 chunks +35 lines, -153 lines 0 comments Download
M fpdfsdk/src/javascript/JS_Context.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/src/javascript/JS_EventHandler.cpp View 10 chunks +0 lines, -10 lines 0 comments Download
M fpdfsdk/src/javascript/JS_GlobalData.cpp View 9 chunks +9 lines, -17 lines 0 comments Download
M fpdfsdk/src/javascript/JS_Object.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M fpdfsdk/src/javascript/PublicMethods.cpp View 12 chunks +3 lines, -21 lines 0 comments Download
M fpdfsdk/src/javascript/app.cpp View 4 chunks +1 line, -8 lines 0 comments Download
M fpdfsdk/src/javascript/event.cpp View 17 chunks +0 lines, -35 lines 0 comments Download
M fpdfsdk/src/javascript/global.cpp View 2 chunks +0 lines, -8 lines 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_EditCtrl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_FontMap.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_Icon.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_Label.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_ListBox.cpp View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_Note.cpp View 1 2 7 chunks +1 line, -37 lines 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_ScrollBar.cpp View 1 2 7 chunks +2 lines, -35 lines 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_Utils.cpp View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M fpdfsdk/src/pdfwindow/PWL_Wnd.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 9 (3 generated)
Lei Zhang
And after FX_BSTRC is gone, the next thing I like to get rid of '!= ...
5 years ago (2015-12-12 02:11:15 UTC) #3
Tom Sepez
https://codereview.chromium.org/1512763013/diff/40001/core/src/fpdfapi/fpdf_font/ttgsubtable.h File core/src/fpdfapi/fpdf_font/ttgsubtable.h (right): https://codereview.chromium.org/1512763013/diff/40001/core/src/fpdfapi/fpdf_font/ttgsubtable.h#newcode280 core/src/fpdfapi/fpdf_font/ttgsubtable.h:280: if (SubTableCount > 0 && SubTable) { nit: could ...
5 years ago (2015-12-14 19:14:12 UTC) #4
Tom Sepez
https://codereview.chromium.org/1512763013/diff/40001/core/src/fpdfapi/fpdf_render/fpdf_render.cpp File core/src/fpdfapi/fpdf_render/fpdf_render.cpp (right): https://codereview.chromium.org/1512763013/diff/40001/core/src/fpdfapi/fpdf_render/fpdf_render.cpp#newcode1358 core/src/fpdfapi/fpdf_render/fpdf_render.cpp:1358: FXSYS_assert(pRect); meh. Only called in one place with pRect ...
5 years ago (2015-12-14 21:10:27 UTC) #5
Lei Zhang
https://codereview.chromium.org/1512763013/diff/40001/core/src/fpdfapi/fpdf_font/ttgsubtable.h File core/src/fpdfapi/fpdf_font/ttgsubtable.h (right): https://codereview.chromium.org/1512763013/diff/40001/core/src/fpdfapi/fpdf_font/ttgsubtable.h#newcode280 core/src/fpdfapi/fpdf_font/ttgsubtable.h:280: if (SubTableCount > 0 && SubTable) { On 2015/12/14 ...
5 years ago (2015-12-15 01:38:33 UTC) #6
Tom Sepez
lgtm https://codereview.chromium.org/1512763013/diff/40001/core/src/fxcodec/codec/fx_codec_jpeg.cpp File core/src/fxcodec/codec/fx_codec_jpeg.cpp (right): https://codereview.chromium.org/1512763013/diff/40001/core/src/fxcodec/codec/fx_codec_jpeg.cpp#newcode285 core/src/fxcodec/codec/fx_codec_jpeg.cpp:285: if (icc_buf_ptr) { On 2015/12/15 01:38:32, Lei Zhang ...
5 years ago (2015-12-15 01:58:11 UTC) #7
Lei Zhang
5 years ago (2015-12-15 02:10:35 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:80001) manually as
e3c7c2b54348da4a6939f6672f6c6bff126815a7 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698