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

Issue 2227883002: Use smart pointers for class owned pointers in xfa/fxfa (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 in xfa/fxfa Use smart pointers instead of raw pointer to make memory management easier for classes mainly under xfa/fxfa. Also change the return type of IFGAS_FontMgr::Create() to smart pointer type. BUG=pdfium:518 Committed: https://pdfium.googlesource.com/pdfium/+/b4d1b576bccb5ca6cebe29288af014bd0f512af1

Patch Set 1 #

Patch Set 2 : more style fixes #

Patch Set 3 : rebase #

Patch Set 4 : more style and deleter fixes #

Patch Set 5 : a couple more fixes #

Patch Set 6 : fix delete order #

Patch Set 7 : remove deleters #

Total comments: 6

Patch Set 8 : rebase #

Patch Set 9 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -336 lines) Patch
M fpdfsdk/fsdk_baseform.cpp View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M xfa/fgas/font/fgas_font.h View 1 2 3 4 5 6 2 chunks +32 lines, -36 lines 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.h View 1 2 3 4 5 6 3 chunks +24 lines, -35 lines 0 comments Download
M xfa/fgas/font/fgas_stdfontmgr.cpp View 1 2 3 4 5 6 7 4 chunks +33 lines, -38 lines 0 comments Download
M xfa/fwl/theme/cfwl_widgettp.h View 1 2 3 4 5 6 1 chunk +5 lines, -4 lines 0 comments Download
M xfa/fwl/theme/cfwl_widgettp.cpp View 1 2 3 2 chunks +6 lines, -28 lines 0 comments Download
M xfa/fxfa/app/xfa_ffapp.cpp View 1 2 3 4 5 4 chunks +22 lines, -37 lines 0 comments Download
M xfa/fxfa/app/xfa_ffdocview.cpp View 1 2 3 11 chunks +36 lines, -21 lines 0 comments Download
M xfa/fxfa/app/xfa_ffwidget.cpp View 1 2 3 4 5 6 7 3 chunks +24 lines, -25 lines 0 comments Download
M xfa/fxfa/app/xfa_fwltheme.h View 1 3 chunks +20 lines, -19 lines 0 comments Download
M xfa/fxfa/app/xfa_fwltheme.cpp View 1 2 3 3 chunks +31 lines, -38 lines 0 comments Download
M xfa/fxfa/include/xfa_ffapp.h View 1 2 3 4 5 6 2 chunks +19 lines, -15 lines 0 comments Download
M xfa/fxfa/include/xfa_ffdocview.h View 1 2 3 4 5 6 7 8 5 chunks +16 lines, -16 lines 0 comments Download
M xfa/fxfa/parser/cxfa_resolveprocessor.h View 1 3 chunks +4 lines, -2 lines 0 comments Download
M xfa/fxfa/parser/cxfa_resolveprocessor.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_locale.h View 1 3 chunks +5 lines, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_locale.cpp View 1 2 3 15 chunks +36 lines, -8 lines 0 comments Download
M xfa/fxfa/parser/xfa_localemgr.cpp View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -6 lines 0 comments Download

Messages

Total messages: 32 (27 generated)
Wei Li
pls review, thanks
4 years, 4 months ago (2016-08-10 19:10:44 UTC) #21
dsinclair
lgtm w/ a couple questions. https://codereview.chromium.org/2227883002/diff/180001/xfa/fxfa/include/xfa_ffdocview.h File xfa/fxfa/include/xfa_ffdocview.h (right): https://codereview.chromium.org/2227883002/diff/180001/xfa/fxfa/include/xfa_ffdocview.h#newcode120 xfa/fxfa/include/xfa_ffdocview.h:120: CXFA_FFWidget* m_pOldFocusWidget; Are the ...
4 years, 4 months ago (2016-08-10 19:47:25 UTC) #22
Wei Li
thanks https://codereview.chromium.org/2227883002/diff/180001/xfa/fxfa/include/xfa_ffdocview.h File xfa/fxfa/include/xfa_ffdocview.h (right): https://codereview.chromium.org/2227883002/diff/180001/xfa/fxfa/include/xfa_ffdocview.h#newcode120 xfa/fxfa/include/xfa_ffdocview.h:120: CXFA_FFWidget* m_pOldFocusWidget; On 2016/08/10 19:47:25, dsinclair wrote: > ...
4 years, 4 months ago (2016-08-10 21:44:58 UTC) #25
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/2227883002/220001
4 years, 4 months ago (2016-08-10 21:50:32 UTC) #30
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 21:50:55 UTC) #32
Message was sent while issue was closed.
Committed patchset #9 (id:220001) as
https://pdfium.googlesource.com/pdfium/+/b4d1b576bccb5ca6cebe29288af014bd0f51...

Powered by Google App Engine
This is Rietveld 408576698