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

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

Created:
4 years, 5 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 all classes under /fpdfsdk, use smart pointer to replace raw pointer type for class owned member variables so that memory management will be easier. BUG=pdfium:518 Committed: https://pdfium.googlesource.com/pdfium/+/2d5b020304e8a9aa8afeb632c61daa7ece87e36d

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fix release order #

Total comments: 4

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -101 lines) Patch
M fpdfsdk/formfiller/cffl_iformfiller.h View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M fpdfsdk/formfiller/cffl_iformfiller.cpp View 4 chunks +3 lines, -8 lines 0 comments Download
M fpdfsdk/formfiller/cffl_listbox.h View 2 chunks +2 lines, -1 line 0 comments Download
M fpdfsdk/formfiller/cffl_listbox.cpp View 2 chunks +4 lines, -6 lines 0 comments Download
M fpdfsdk/formfiller/cffl_textfield.h View 3 chunks +5 lines, -1 line 0 comments Download
M fpdfsdk/formfiller/cffl_textfield.cpp View 1 2 chunks +3 lines, -6 lines 0 comments Download
M fpdfsdk/fpdfxfa/fpdfxfa_app.cpp View 2 chunks +1 line, -5 lines 0 comments Download
M fpdfsdk/fpdfxfa/fpdfxfa_doc.cpp View 1 2 20 chunks +30 lines, -29 lines 0 comments Download
M fpdfsdk/fpdfxfa/include/fpdfxfa_app.h View 2 chunks +2 lines, -3 lines 0 comments Download
M fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h View 3 chunks +7 lines, -7 lines 0 comments Download
M fpdfsdk/include/fsdk_mgr.h View 1 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/cjs_context.h View 2 chunks +5 lines, -3 lines 0 comments Download
M fpdfsdk/javascript/cjs_context.cpp View 1 chunk +4 lines, -6 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_FontMap.h View 1 2 3 4 chunks +8 lines, -10 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_FontMap.cpp View 1 2 3 3 chunks +4 lines, -7 lines 0 comments Download
M fpdfsdk/pdfwindow/PWL_Wnd.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M fpdfsdk/pdfwindow/PWL_Wnd.cpp View 1 chunk +3 lines, -5 lines 0 comments Download

Messages

Total messages: 25 (19 generated)
Wei Li
pls review, thanks
4 years, 4 months ago (2016-08-02 22:35:59 UTC) #12
Lei Zhang
lgtm https://codereview.chromium.org/2173253002/diff/80001/fpdfsdk/formfiller/cffl_iformfiller.h File fpdfsdk/formfiller/cffl_iformfiller.h (right): https://codereview.chromium.org/2173253002/diff/80001/fpdfsdk/formfiller/cffl_iformfiller.h#newcode10 fpdfsdk/formfiller/cffl_iformfiller.h:10: #include <memory> alphabetical order
4 years, 4 months ago (2016-08-02 22:54:00 UTC) #13
dsinclair
lgtm w/ question. https://codereview.chromium.org/2173253002/diff/80001/fpdfsdk/pdfwindow/PWL_FontMap.h File fpdfsdk/pdfwindow/PWL_FontMap.h (right): https://codereview.chromium.org/2173253002/diff/80001/fpdfsdk/pdfwindow/PWL_FontMap.h#newcode56 fpdfsdk/pdfwindow/PWL_FontMap.h:56: using CharsetFontMap = FPDF_CharsetFontMap; Is this ...
4 years, 4 months ago (2016-08-03 12:47:56 UTC) #14
Wei Li
thanks https://codereview.chromium.org/2173253002/diff/80001/fpdfsdk/formfiller/cffl_iformfiller.h File fpdfsdk/formfiller/cffl_iformfiller.h (right): https://codereview.chromium.org/2173253002/diff/80001/fpdfsdk/formfiller/cffl_iformfiller.h#newcode10 fpdfsdk/formfiller/cffl_iformfiller.h:10: #include <memory> On 2016/08/02 22:54:00, Lei Zhang wrote: ...
4 years, 4 months ago (2016-08-03 17:54:47 UTC) #20
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/2173253002/120001
4 years, 4 months ago (2016-08-03 18:06:33 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-03 18:06:53 UTC) #25
Message was sent while issue was closed.
Committed patchset #4 (id:120001) as
https://pdfium.googlesource.com/pdfium/+/2d5b020304e8a9aa8afeb632c61daa7ece87...

Powered by Google App Engine
This is Rietveld 408576698