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

Issue 2464703006: Fold IFWL*::{Initialize|Finalize} into constructor/destructor (Closed)

Created:
4 years, 1 month ago by dsinclair
Modified:
4 years, 1 month ago
Reviewers:
Tom Sepez, Wei Li
CC:
pdfium-reviews_googlegroups.com
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fold IFWL*::{Initialize|Finalize} into constructor/destructor This Cl moves the ::Initialize method into the constructors and the ::Finalize method into the destructors. The |m_pDelegate| is made private and a unique_ptr. A |SetDelegate| and |GetDelegate| method are added. Committed: https://pdfium.googlesource.com/pdfium/+/6fe8795d9022105a0061a0a81be9a49d49fda345

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase to master #

Total comments: 6

Patch Set 3 : Rebase to master #

Patch Set 4 : Review feedback #

Patch Set 5 : Rebase to master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -385 lines) Patch
M xfa/fwl/core/cfwl_barcode.cpp View 2 chunks +5 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_checkbox.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_combobox.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_datetimepicker.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_edit.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_listbox.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_picturebox.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_pushbutton.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M xfa/fwl/core/cfwl_widget.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download
M xfa/fwl/core/fwl_noteimp.h View 1 chunk +0 lines, -1 line 0 comments Download
M xfa/fwl/core/fwl_noteimp.cpp View 1 chunk +2 lines, -8 lines 0 comments Download
M xfa/fwl/core/ifwl_barcode.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_barcode.cpp View 1 2 3 3 chunks +4 lines, -15 lines 0 comments Download
M xfa/fwl/core/ifwl_caret.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_caret.cpp View 2 chunks +7 lines, -15 lines 0 comments Download
M xfa/fwl/core/ifwl_checkbox.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_checkbox.cpp View 2 chunks +3 lines, -11 lines 0 comments Download
M xfa/fwl/core/ifwl_combobox.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_combobox.cpp View 8 chunks +3 lines, -21 lines 0 comments Download
M xfa/fwl/core/ifwl_combolist.h View 1 chunk +0 lines, -4 lines 0 comments Download
M xfa/fwl/core/ifwl_combolist.cpp View 5 chunks +5 lines, -17 lines 0 comments Download
M xfa/fwl/core/ifwl_datetimecalendar.h View 1 chunk +0 lines, -4 lines 0 comments Download
M xfa/fwl/core/ifwl_datetimecalendar.cpp View 2 chunks +3 lines, -14 lines 0 comments Download
M xfa/fwl/core/ifwl_datetimeedit.h View 1 chunk +0 lines, -4 lines 0 comments Download
M xfa/fwl/core/ifwl_datetimeedit.cpp View 1 chunk +3 lines, -14 lines 0 comments Download
M xfa/fwl/core/ifwl_datetimepicker.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_datetimepicker.cpp View 8 chunks +15 lines, -40 lines 0 comments Download
M xfa/fwl/core/ifwl_edit.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_edit.cpp View 1 2 3 4 chunks +10 lines, -22 lines 0 comments Download
M xfa/fwl/core/ifwl_form.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_form.cpp View 2 chunks +4 lines, -13 lines 0 comments Download
M xfa/fwl/core/ifwl_formproxy.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_formproxy.cpp View 1 chunk +4 lines, -12 lines 0 comments Download
M xfa/fwl/core/ifwl_listbox.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_listbox.cpp View 1 3 chunks +5 lines, -19 lines 0 comments Download
M xfa/fwl/core/ifwl_monthcalendar.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_monthcalendar.cpp View 3 chunks +3 lines, -11 lines 0 comments Download
M xfa/fwl/core/ifwl_picturebox.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_picturebox.cpp View 2 chunks +3 lines, -11 lines 0 comments Download
M xfa/fwl/core/ifwl_pushbutton.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_pushbutton.cpp View 2 chunks +3 lines, -11 lines 0 comments Download
M xfa/fwl/core/ifwl_scrollbar.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_scrollbar.cpp View 2 chunks +3 lines, -11 lines 0 comments Download
M xfa/fwl/core/ifwl_spinbutton.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_spinbutton.cpp View 2 chunks +3 lines, -11 lines 0 comments Download
M xfa/fwl/core/ifwl_tooltip.h View 1 chunk +0 lines, -2 lines 0 comments Download
M xfa/fwl/core/ifwl_tooltip.cpp View 1 2 3 2 chunks +4 lines, -14 lines 0 comments Download
M xfa/fwl/core/ifwl_widget.h View 2 chunks +9 lines, -4 lines 0 comments Download
M xfa/fwl/core/ifwl_widget.cpp View 3 chunks +8 lines, -12 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (9 generated)
dsinclair
PTAL. https://codereview.chromium.org/2464703006/diff/1/xfa/fwl/core/ifwl_datetimepicker.cpp File xfa/fwl/core/ifwl_datetimepicker.cpp (left): https://codereview.chromium.org/2464703006/diff/1/xfa/fwl/core/ifwl_datetimepicker.cpp#oldcode332 xfa/fwl/core/ifwl_datetimepicker.cpp:332: pSpin->Initialize(); This never did anything with pSpin so ...
4 years, 1 month ago (2016-10-31 19:48:18 UTC) #2
Tom Sepez
Are we sure there aren't some subtleties of deletion order that will get re-arranged? Otherwise ...
4 years, 1 month ago (2016-10-31 20:26:11 UTC) #5
dsinclair
https://codereview.chromium.org/2464703006/diff/20001/xfa/fwl/core/ifwl_barcode.cpp File xfa/fwl/core/ifwl_barcode.cpp (right): https://codereview.chromium.org/2464703006/diff/20001/xfa/fwl/core/ifwl_barcode.cpp#newcode23 xfa/fwl/core/ifwl_barcode.cpp:23: m_pBarcodeEngine.reset(); On 2016/10/31 20:26:11, Tom Sepez wrote: > does ...
4 years, 1 month ago (2016-11-01 15:39:45 UTC) #8
dsinclair
On 2016/10/31 20:26:11, Tom Sepez wrote: > Are we sure there aren't some subtleties of ...
4 years, 1 month ago (2016-11-01 15:40:40 UTC) #9
Tom Sepez
still lgtm
4 years, 1 month ago (2016-11-01 21:34:09 UTC) #12
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/2464703006/80001
4 years, 1 month ago (2016-11-02 01:47:57 UTC) #14
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 01:48:23 UTC) #16
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/6fe8795d9022105a0061a0a81be9a49d49fd...

Powered by Google App Engine
This is Rietveld 408576698