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

Issue 2095653002: Remove NULL in xfa/ (Closed)

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

Description

Remove NULL in xfa/ This CL converts all NULL's to nullptr. All instances of comparison to nullptr have been removed. Committed: https://pdfium.googlesource.com/pdfium/+/85d1f2c2f9f1e746bedb1b6f03576613f54fbc27

Patch Set 1 #

Patch Set 2 : Fix windows warnings #

Patch Set 3 : windows fixes #

Patch Set 4 : Rebase to master #

Total comments: 72

Patch Set 5 : Spelling mistake #

Patch Set 6 : Review feedback #

Patch Set 7 : more windows #

Patch Set 8 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1384 lines, -1420 lines) Patch
M xfa/fde/css/fde_cssdatatable.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fde/css/fde_cssstylesheet.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M xfa/fde/fde_gedevice.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M xfa/fgas/crt/fgas_codepage.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M xfa/fgas/crt/fgas_stream.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fgas/crt/fgas_stream.cpp View 1 2 3 4 5 43 chunks +82 lines, -82 lines 0 comments Download
M xfa/fgas/crt/fgas_system.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fgas/crt/fgas_system.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fgas/crt/fgas_utils.h View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fgas/crt/fgas_utils.cpp View 1 2 3 4 5 6 chunks +10 lines, -14 lines 0 comments Download
M xfa/fgas/font/fgas_font.h View 3 chunks +13 lines, -13 lines 0 comments Download
M xfa/fgas/font/fgas_fontutils.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fgas/font/fgas_gefont.cpp View 14 chunks +41 lines, -41 lines 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.h View 3 chunks +20 lines, -18 lines 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.cpp View 1 2 3 4 5 26 chunks +52 lines, -52 lines 0 comments Download
M xfa/fgas/layout/fgas_rtfbreak.h View 1 2 3 4 5 5 chunks +9 lines, -11 lines 0 comments Download
M xfa/fgas/layout/fgas_rtfbreak.cpp View 1 2 3 4 5 26 chunks +37 lines, -45 lines 0 comments Download
M xfa/fgas/layout/fgas_textbreak.h View 3 chunks +5 lines, -5 lines 0 comments Download
M xfa/fgas/layout/fgas_textbreak.cpp View 1 2 3 4 5 26 chunks +41 lines, -46 lines 0 comments Download
M xfa/fgas/localization/fgas_datetime.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fgas/localization/fgas_locale.cpp View 9 chunks +10 lines, -10 lines 0 comments Download
M xfa/fwl/basewidget/cfx_barcode.cpp View 9 chunks +9 lines, -9 lines 0 comments Download
M xfa/fwl/basewidget/fwl_caretimp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_checkboximp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_checkboximp.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_comboboximp.h View 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fwl/basewidget/fwl_comboboximp.cpp View 1 2 3 4 5 12 chunks +18 lines, -18 lines 0 comments Download
M xfa/fwl/basewidget/fwl_datetimepickerimp.h View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fwl/basewidget/fwl_datetimepickerimp.cpp View 6 chunks +7 lines, -6 lines 0 comments Download
M xfa/fwl/basewidget/fwl_editimp.h View 5 chunks +6 lines, -6 lines 0 comments Download
M xfa/fwl/basewidget/fwl_editimp.cpp View 4 chunks +6 lines, -6 lines 0 comments Download
M xfa/fwl/basewidget/fwl_formproxyimp.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_listboximp.h View 2 chunks +4 lines, -4 lines 0 comments Download
M xfa/fwl/basewidget/fwl_listboximp.cpp View 10 chunks +12 lines, -12 lines 0 comments Download
M xfa/fwl/basewidget/fwl_monthcalendarimp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_monthcalendarimp.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_pictureboximp.h View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fwl/basewidget/fwl_pushbuttonimp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_pushbuttonimp.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fwl/basewidget/fwl_scrollbarimp.h View 2 chunks +4 lines, -4 lines 0 comments Download
M xfa/fwl/basewidget/fwl_spinbuttonimp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_tooltipctrlimp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/core/cfwl_themetext.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/core/cfwl_widgetmgr.h View 2 chunks +3 lines, -2 lines 0 comments Download
M xfa/fwl/core/cfwl_widgetmgr.cpp View 1 2 3 4 5 11 chunks +16 lines, -16 lines 0 comments Download
M xfa/fwl/core/fwl_appimp.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/core/fwl_formimp.h View 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fwl/core/fwl_formimp.cpp View 5 chunks +6 lines, -6 lines 0 comments Download
M xfa/fwl/core/fwl_noteimp.cpp View 18 chunks +28 lines, -26 lines 0 comments Download
M xfa/fwl/core/fwl_widgetimp.h View 3 chunks +7 lines, -7 lines 0 comments Download
M xfa/fwl/core/fwl_widgetimp.cpp View 8 chunks +8 lines, -8 lines 0 comments Download
M xfa/fwl/core/ifwl_widget.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/lightwidget/cfwl_barcode.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/lightwidget/cfwl_checkbox.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/lightwidget/cfwl_combobox.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/lightwidget/cfwl_combobox.cpp View 1 2 3 4 5 3 chunks +3 lines, -9 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_datetimepicker.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/lightwidget/cfwl_edit.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/lightwidget/cfwl_listbox.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/lightwidget/cfwl_listbox.cpp View 1 2 3 4 5 5 chunks +9 lines, -13 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_picturebox.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/lightwidget/cfwl_pushbutton.h View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_widget.h View 2 chunks +4 lines, -4 lines 0 comments Download
M xfa/fwl/theme/cfwl_carettp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/theme/cfwl_checkboxtp.h View 1 chunk +10 lines, -10 lines 0 comments Download
M xfa/fwl/theme/cfwl_listboxtp.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fwl/theme/cfwl_scrollbartp.h View 1 chunk +4 lines, -4 lines 0 comments Download
M xfa/fwl/theme/cfwl_widgettp.h View 4 chunks +14 lines, -14 lines 0 comments Download
M xfa/fwl/theme/cfwl_widgettp.cpp View 5 chunks +7 lines, -7 lines 0 comments Download
M xfa/fxfa/app/xfa_checksum.cpp View 4 chunks +6 lines, -6 lines 0 comments Download
M xfa/fxfa/app/xfa_ffapp.cpp View 1 2 3 4 5 1 chunk +9 lines, -17 lines 0 comments Download
M xfa/fxfa/app/xfa_ffbarcode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffcheckbutton.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffcheckbutton.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffchoicelist.h View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffchoicelist.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_ffdocview.cpp View 1 2 3 4 5 14 chunks +28 lines, -35 lines 0 comments Download
M xfa/fxfa/app/xfa_fffield.h View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_fffield.cpp View 10 chunks +12 lines, -12 lines 0 comments Download
M xfa/fxfa/app/xfa_ffimage.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffimageedit.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffimageedit.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_ffnotify.h View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffnotify.cpp View 1 2 3 4 5 6 3 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_ffpageview.cpp View 13 chunks +17 lines, -17 lines 0 comments Download
M xfa/fxfa/app/xfa_ffpushbutton.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffpushbutton.cpp View 3 chunks +7 lines, -7 lines 0 comments Download
M xfa/fxfa/app/xfa_fftext.cpp View 8 chunks +12 lines, -12 lines 0 comments Download
M xfa/fxfa/app/xfa_fftextedit.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_fftextedit.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidget.cpp View 1 2 3 12 chunks +21 lines, -21 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidgetacc.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/app/xfa_ffwidgetacc.cpp View 1 2 3 4 5 6 7 12 chunks +19 lines, -19 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidgethandler.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_fontmgr.cpp View 1 2 3 4 5 4 chunks +14 lines, -12 lines 0 comments Download
M xfa/fxfa/app/xfa_fwltheme.cpp View 3 chunks +6 lines, -6 lines 0 comments Download
M xfa/fxfa/app/xfa_textlayout.h View 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_textlayout.cpp View 25 chunks +31 lines, -31 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_fmparse.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M xfa/fxfa/include/fxfa.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/include/fxfa_widget.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/include/xfa_ffdoc.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/include/xfa_ffwidget.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/include/xfa_ffwidgethandler.h View 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/include/xfa_rendercontext.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/cxfa_box.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/parser/cxfa_widgetdata.cpp View 1 2 3 4 5 10 chunks +17 lines, -24 lines 0 comments Download
M xfa/fxfa/parser/xfa_basic_data.cpp View 1 2 3 4 5 38 chunks +94 lines, -97 lines 0 comments Download
M xfa/fxfa/parser/xfa_basic_imp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_basic_imp.cpp View 1 2 3 4 5 6 7 17 chunks +20 lines, -19 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_datadescription_imp.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_datamerger_imp.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_document_datamerger_imp.cpp View 1 2 3 26 chunks +36 lines, -34 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_imp.cpp View 1 2 3 4 5 6 chunks +15 lines, -20 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_layout_imp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_document_layout_imp.cpp View 6 chunks +12 lines, -12 lines 0 comments Download
M xfa/fxfa/parser/xfa_document_serialize.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_document_serialize.cpp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_appadapter.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_layout_itemlayout.h View 1 2 3 4 5 4 chunks +9 lines, -9 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_itemlayout.cpp View 1 2 3 4 5 47 chunks +68 lines, -63 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_pagemgr_new.h View 4 chunks +17 lines, -16 lines 0 comments Download
M xfa/fxfa/parser/xfa_layout_pagemgr_new.cpp View 1 2 3 4 5 48 chunks +128 lines, -125 lines 0 comments Download
M xfa/fxfa/parser/xfa_locale.cpp View 5 chunks +5 lines, -5 lines 0 comments Download
M xfa/fxfa/parser/xfa_localemgr.cpp View 7 chunks +14 lines, -13 lines 0 comments Download
M xfa/fxfa/parser/xfa_localevalue.h View 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_localevalue.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_object.h View 1 2 3 5 chunks +15 lines, -14 lines 0 comments Download
M xfa/fxfa/parser/xfa_object_imp.cpp View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_parser.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_parser_imp.h View 2 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/parser/xfa_parser_imp.cpp View 1 2 3 4 5 6 7 34 chunks +50 lines, -51 lines 0 comments Download
M xfa/fxfa/parser/xfa_script.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.h View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_imp.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_layoutpseudomodel.cpp View 1 2 3 6 chunks +6 lines, -6 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_nodehelper.cpp View 1 2 3 4 5 6 7 11 chunks +16 lines, -16 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_resolveprocessor.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_script_resolveprocessor.cpp View 1 2 3 4 5 6 7 7 chunks +9 lines, -9 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_signaturepseudomodel.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_utils.h View 1 2 3 4 5 6 8 chunks +11 lines, -10 lines 0 comments Download
M xfa/fxfa/parser/xfa_utils_imp.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M xfa/fxgraphics/include/cfx_graphics.h View 1 chunk +7 lines, -7 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
dsinclair
PTAL. There maybe a bot failure on Windows, there are warnings on there which don't ...
4 years, 6 months ago (2016-06-23 15:53:28 UTC) #3
Lei Zhang
Got red bots still. I was holding off on this because there was a lot ...
4 years, 6 months ago (2016-06-23 17:44:06 UTC) #4
Lei Zhang
Still looking... https://codereview.chromium.org/2095653002/diff/80001/xfa/fgas/crt/fgas_stream.cpp File xfa/fgas/crt/fgas_stream.cpp (right): https://codereview.chromium.org/2095653002/diff/80001/xfa/fgas/crt/fgas_stream.cpp#newcode1085 xfa/fgas/crt/fgas_stream.cpp:1085: int32_t iBytes = !pByteSize ? iMaxLength * ...
4 years, 6 months ago (2016-06-23 17:56:00 UTC) #5
Lei Zhang
Almost done... https://codereview.chromium.org/2095653002/diff/80001/xfa/fwl/basewidget/fwl_comboboximp.cpp File xfa/fwl/basewidget/fwl_comboboximp.cpp (right): https://codereview.chromium.org/2095653002/diff/80001/xfa/fwl/basewidget/fwl_comboboximp.cpp#newcode878 xfa/fwl/basewidget/fwl_comboboximp.cpp:878: } else { else after return https://codereview.chromium.org/2095653002/diff/80001/xfa/fwl/lightwidget/cfwl_combobox.cpp ...
4 years, 6 months ago (2016-06-23 18:21:45 UTC) #6
Lei Zhang
Windows bots still dislike you. https://codereview.chromium.org/2095653002/diff/80001/xfa/fxfa/parser/cxfa_widgetdata.cpp File xfa/fxfa/parser/cxfa_widgetdata.cpp (right): https://codereview.chromium.org/2095653002/diff/80001/xfa/fxfa/parser/cxfa_widgetdata.cpp#newcode1467 xfa/fxfa/parser/cxfa_widgetdata.cpp:1467: return pLocale; just return ...
4 years, 6 months ago (2016-06-23 18:27:41 UTC) #7
dsinclair
https://codereview.chromium.org/2095653002/diff/80001/xfa/fgas/crt/fgas_stream.cpp File xfa/fgas/crt/fgas_stream.cpp (right): https://codereview.chromium.org/2095653002/diff/80001/xfa/fgas/crt/fgas_stream.cpp#newcode1085 xfa/fgas/crt/fgas_stream.cpp:1085: int32_t iBytes = !pByteSize ? iMaxLength * 2 : ...
4 years, 6 months ago (2016-06-23 18:46:54 UTC) #8
Lei Zhang
lgtm
4 years, 6 months ago (2016-06-23 18:56:05 UTC) #9
Lei Zhang
Except you still have more Windows failures due to removing "!= nullptr" in while statements.
4 years, 6 months ago (2016-06-23 18:56:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2095653002/140001
4 years, 6 months ago (2016-06-23 19:00:52 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2095653002/160001
4 years, 6 months ago (2016-06-23 19:34:47 UTC) #17
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 19:40:22 UTC) #19
Message was sent while issue was closed.
Committed patchset #8 (id:160001) as
https://pdfium.googlesource.com/pdfium/+/85d1f2c2f9f1e746bedb1b6f03576613f54f...

Powered by Google App Engine
This is Rietveld 408576698