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

Issue 1998873002: Clean up XFA code which causes warnings (Closed)

Created:
4 years, 7 months ago by Wei Li
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

Clean up XFA code which causes warnings This is part of efforts to bring XFA to chromium_code standard. The warnings are from unreachable code, or using potentially uninitialized variables, or using assignment within a condition. This change list only contains easy to fix cases. More cleanups will follow. BUG=pdfium:29 Committed: https://pdfium.googlesource.com/pdfium/+/038aa531bcf1a76764d3cef46fd9b8e08b166dae

Patch Set 1 : #

Total comments: 18

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -140 lines) Patch
M xfa/fde/cfde_txtedtengine.cpp View 1 2 chunks +5 lines, -12 lines 0 comments Download
M xfa/fde/css/fde_cssstyleselector.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fde/css/fde_cssstylesheet.cpp View 2 chunks +0 lines, -2 lines 0 comments Download
M xfa/fde/xml/fde_xml_imp.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fgas/layout/fgas_textbreak.cpp View 6 chunks +17 lines, -12 lines 0 comments Download
M xfa/fwl/core/fwl_widgetmgrimp.cpp View 1 chunk +5 lines, -9 lines 0 comments Download
M xfa/fwl/lightwidget/cfwl_theme.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256Poly.cpp View 5 chunks +15 lines, -26 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OneDimReader.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedCode128Reader.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedCode128Writer.cpp View 1 chunk +1 line, -4 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedUPCAReader.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxfa/app/xfa_ffdocview.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/app/xfa_ffnotify.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidget.cpp View 1 9 chunks +40 lines, -25 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidgetacc.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/fm2js/xfa_fm2jscontext.cpp View 7 chunks +13 lines, -17 lines 0 comments Download
M xfa/fxfa/parser/xfa_basic_imp.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_document_datamerger_imp.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/xfa_localemgr.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_object_imp.cpp View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_parser_imp.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fxfa/parser/xfa_utils.h View 3 chunks +4 lines, -4 lines 0 comments Download
M xfa/fxfa/parser/xfa_utils_imp.cpp View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
Wei Li
pls review, thanks
4 years, 7 months ago (2016-05-20 01:01:04 UTC) #4
Lei Zhang
What build settings trigger these warnings? https://codereview.chromium.org/1998873002/diff/20001/xfa/fde/cfde_txtedtengine.cpp File xfa/fde/cfde_txtedtengine.cpp (left): https://codereview.chromium.org/1998873002/diff/20001/xfa/fde/cfde_txtedtengine.cpp#oldcode1611 xfa/fde/cfde_txtedtengine.cpp:1611: while (nCountRange > ...
4 years, 7 months ago (2016-05-20 03:48:02 UTC) #5
Wei Li
I am trying to enable 'chromium_code' on XFA as well. Added that into the desc ...
4 years, 7 months ago (2016-05-20 16:33:15 UTC) #8
Lei Zhang
lgtm
4 years, 7 months ago (2016-05-20 21:59:22 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1998873002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1998873002/60001
4 years, 7 months ago (2016-05-20 22:04:14 UTC) #13
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 22:38:33 UTC) #15
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://pdfium.googlesource.com/pdfium/+/038aa531bcf1a76764d3cef46fd9b8e08b16...

Powered by Google App Engine
This is Rietveld 408576698