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

Issue 2207093005: Use smart pointers for class owned pointers (Closed)

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

Description

Use smart pointers for class owned pointers For classes under xfa/fgas, xfa/fwl/basewidget, and xfa/fwl/core, use smart pointers instead of raw pointer to make memory management easier. BUG=pdfium:518 Committed: https://pdfium.googlesource.com/pdfium/+/1b4f6b36b3ed8d1f6cea96bc32c1b376f4a499bc

Patch Set 1 #

Patch Set 2 : small fix #

Total comments: 10

Patch Set 3 : address comments #

Total comments: 2

Patch Set 4 : one more change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -182 lines) Patch
M xfa/fgas/font/fgas_gefont.h View 2 chunks +9 lines, -8 lines 0 comments Download
M xfa/fgas/font/fgas_gefont.cpp View 1 2 5 chunks +13 lines, -39 lines 0 comments Download
M xfa/fgas/layout/fgas_textbreak.h View 3 chunks +6 lines, -4 lines 0 comments Download
M xfa/fgas/layout/fgas_textbreak.cpp View 1 2 41 chunks +73 lines, -34 lines 0 comments Download
M xfa/fwl/basewidget/cfx_barcode.h View 2 chunks +3 lines, -1 line 0 comments Download
M xfa/fwl/basewidget/cfx_barcode.cpp View 1 2 16 chunks +31 lines, -40 lines 0 comments Download
M xfa/fwl/basewidget/fwl_caretimp.h View 2 chunks +4 lines, -2 lines 0 comments Download
M xfa/fwl/basewidget/fwl_caretimp.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M xfa/fwl/basewidget/fwl_editimp.h View 1 chunk +1 line, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_editimp.cpp View 4 chunks +6 lines, -7 lines 0 comments Download
M xfa/fwl/basewidget/fwl_monthcalendarimp.h View 2 chunks +3 lines, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_monthcalendarimp.cpp View 3 chunks +4 lines, -5 lines 0 comments Download
M xfa/fwl/basewidget/fwl_tooltipctrlimp.h View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/basewidget/fwl_tooltipctrlimp.cpp View 2 chunks +2 lines, -6 lines 0 comments Download
M xfa/fwl/core/fwl_formimp.h View 2 chunks +3 lines, -1 line 0 comments Download
M xfa/fwl/core/fwl_formimp.cpp View 6 chunks +9 lines, -6 lines 0 comments Download
M xfa/fwl/core/fwl_noteimp.h View 3 chunks +3 lines, -2 lines 0 comments Download
M xfa/fwl/core/fwl_noteimp.cpp View 1 2 3 6 chunks +9 lines, -12 lines 0 comments Download
M xfa/fwl/core/fwl_widgetimp.h View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M xfa/fwl/core/fwl_widgetimp.cpp View 1 2 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 24 (16 generated)
Wei Li
pls review, thanks
4 years, 4 months ago (2016-08-04 18:02:22 UTC) #6
Lei Zhang
lgtm https://codereview.chromium.org/2207093005/diff/20001/xfa/fgas/font/fgas_gefont.cpp File xfa/fgas/font/fgas_gefont.cpp (right): https://codereview.chromium.org/2207093005/diff/20001/xfa/fgas/font/fgas_gefont.cpp#newcode204 xfa/fgas/font/fgas_gefont.cpp:204: } else { no else after return https://codereview.chromium.org/2207093005/diff/20001/xfa/fgas/layout/fgas_textbreak.cpp ...
4 years, 4 months ago (2016-08-04 18:49:32 UTC) #7
Wei Li
thanks https://codereview.chromium.org/2207093005/diff/20001/xfa/fgas/font/fgas_gefont.cpp File xfa/fgas/font/fgas_gefont.cpp (right): https://codereview.chromium.org/2207093005/diff/20001/xfa/fgas/font/fgas_gefont.cpp#newcode204 xfa/fgas/font/fgas_gefont.cpp:204: } else { On 2016/08/04 18:49:31, Lei Zhang ...
4 years, 4 months ago (2016-08-04 22:16:04 UTC) #10
Lei Zhang
https://codereview.chromium.org/2207093005/diff/60001/xfa/fwl/core/fwl_noteimp.cpp File xfa/fwl/core/fwl_noteimp.cpp (right): https://codereview.chromium.org/2207093005/diff/60001/xfa/fwl/core/fwl_noteimp.cpp#newcode676 xfa/fwl/core/fwl_noteimp.cpp:676: CFWL_CoreToolTipDP::CFWL_CoreToolTipDP() Is this ctor ever used? If yes, just ...
4 years, 4 months ago (2016-08-04 22:19:31 UTC) #12
Wei Li
thanks https://codereview.chromium.org/2207093005/diff/60001/xfa/fwl/core/fwl_noteimp.cpp File xfa/fwl/core/fwl_noteimp.cpp (right): https://codereview.chromium.org/2207093005/diff/60001/xfa/fwl/core/fwl_noteimp.cpp#newcode676 xfa/fwl/core/fwl_noteimp.cpp:676: CFWL_CoreToolTipDP::CFWL_CoreToolTipDP() On 2016/08/04 22:19:30, Lei Zhang wrote: > ...
4 years, 4 months ago (2016-08-04 22:54:12 UTC) #15
Lei Zhang
++lgtm
4 years, 4 months ago (2016-08-04 22:56:34 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2207093005/80001
4 years, 4 months ago (2016-08-04 23:37:35 UTC) #22
commit-bot: I haz the power
4 years, 4 months ago (2016-08-04 23:37:52 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/1b4f6b36b3ed8d1f6cea96bc32c1b376f4a4...

Powered by Google App Engine
This is Rietveld 408576698