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

Issue 2221023003: Use smart pointers for class owned pointers in xfa/fxbarcode (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/fxbarcode For classes under xfa/fxbarcode, use smart pointers instead of raw pointer to make memory management easier. Also fix some styling issues along the changes. BUG=pdfium:518 Committed: https://pdfium.googlesource.com/pdfium/+/e76203dbefd1df075a063ee019c3908513f6bee5

Patch Set 1 #

Total comments: 18

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -240 lines) Patch
M xfa/fxbarcode/BC_TwoDimWriter.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M xfa/fxbarcode/BC_TwoDimWriter.cpp View 3 chunks +6 lines, -10 lines 0 comments Download
M xfa/fxbarcode/common/BC_CommonByteArray.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M xfa/fxbarcode/common/BC_CommonByteArray.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.h View 1 2 chunks +14 lines, -8 lines 0 comments Download
M xfa/fxbarcode/common/reedsolomon/BC_ReedSolomonGF256.cpp View 1 5 chunks +23 lines, -15 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OneDimWriter.h View 2 chunks +3 lines, -1 line 0 comments Download
M xfa/fxbarcode/oned/BC_OneDimWriter.cpp View 5 chunks +14 lines, -5 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedUPCAWriter.h View 4 chunks +5 lines, -3 lines 0 comments Download
M xfa/fxbarcode/oned/BC_OnedUPCAWriter.cpp View 4 chunks +7 lines, -5 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417.h View 1 4 chunks +14 lines, -12 lines 0 comments Download
M xfa/fxbarcode/pdf417/BC_PDF417.cpp View 1 7 chunks +23 lines, -27 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCodeWriter.cpp View 1 5 chunks +9 lines, -2 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCoder.h View 1 2 chunks +31 lines, -25 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCoder.cpp View 1 3 chunks +52 lines, -31 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCoderBlockPair.h View 1 1 chunk +11 lines, -8 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCoderBlockPair.cpp View 1 1 chunk +17 lines, -14 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCoderEncoder.cpp View 1 30 chunks +40 lines, -11 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCoderMode.h View 1 2 chunks +22 lines, -20 lines 0 comments Download
M xfa/fxbarcode/qrcode/BC_QRCoderMode.cpp View 5 chunks +32 lines, -35 lines 0 comments Download

Messages

Total messages: 23 (17 generated)
Wei Li
pls review, thanks
4 years, 4 months ago (2016-08-08 23:56:26 UTC) #7
Lei Zhang
looks good https://codereview.chromium.org/2221023003/diff/1/xfa/fxbarcode/BC_TwoDimWriter.h File xfa/fxbarcode/BC_TwoDimWriter.h (right): https://codereview.chromium.org/2221023003/diff/1/xfa/fxbarcode/BC_TwoDimWriter.h#newcode30 xfa/fxbarcode/BC_TwoDimWriter.h:30: virtual int32_t GetErrorCorrectionLevel() const; BTW, I don't ...
4 years, 4 months ago (2016-08-09 00:23:43 UTC) #8
Wei Li
thanks https://codereview.chromium.org/2221023003/diff/1/xfa/fxbarcode/BC_TwoDimWriter.h File xfa/fxbarcode/BC_TwoDimWriter.h (right): https://codereview.chromium.org/2221023003/diff/1/xfa/fxbarcode/BC_TwoDimWriter.h#newcode30 xfa/fxbarcode/BC_TwoDimWriter.h:30: virtual int32_t GetErrorCorrectionLevel() const; On 2016/08/09 00:23:43, Lei ...
4 years, 4 months ago (2016-08-09 19:31:23 UTC) #18
Lei Zhang
lgtm
4 years, 4 months ago (2016-08-09 20:33:13 UTC) #19
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/2221023003/40001
4 years, 4 months ago (2016-08-09 20:44:46 UTC) #21
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 20:45:08 UTC) #23
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://pdfium.googlesource.com/pdfium/+/e76203dbefd1df075a063ee019c3908513f6...

Powered by Google App Engine
This is Rietveld 408576698