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

Issue 889673003: Replace CFX_SmartPointer cast operator with Get() method. (Closed)

Created:
5 years, 10 months ago by Tom Sepez
Modified:
5 years, 10 months ago
Reviewers:
Lei Zhang, dcheng
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Replace CFX_SmartPointer cast operator with Get() method. This is part of the project to kill off C-style casts in the code base. Remove implict T* cast operator, and replace potentially unsafe C-style casts with Get() method. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/c32dac1f9dcd75aeabd9ea1af257499270d2f041

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Reduce changes to Get() method only. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M core/include/fxcrt/fx_basic.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp View 6 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
Tom Sepez
Lei, I'd expect you'll have strong opinions on this; enjoy.
5 years, 10 months ago (2015-01-30 22:27:25 UTC) #2
Lei Zhang
+dcheng since he's been wrestling with smart pointers.
5 years, 10 months ago (2015-01-30 22:38:15 UTC) #4
dcheng
The other strange part to me is why the code doesn't just use a destructor ...
5 years, 10 months ago (2015-01-31 01:41:30 UTC) #5
Tom Sepez
On 2015/01/31 01:41:30, dcheng wrote: > The other strange part to me is why the ...
5 years, 10 months ago (2015-02-02 19:11:22 UTC) #6
Tom Sepez
Please re-review. I think I'm going to let CFX_SmartPointer remain for the moment, but discourage ...
5 years, 10 months ago (2015-02-03 21:31:47 UTC) #7
dcheng
Seems good to me, though I'm not an owner for any of this code.
5 years, 10 months ago (2015-02-04 00:03:04 UTC) #8
Lei Zhang
lgtm
5 years, 10 months ago (2015-02-04 00:13:01 UTC) #9
Tom Sepez
5 years, 10 months ago (2015-02-04 00:28:48 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
c32dac1f9dcd75aeabd9ea1af257499270d2f041 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698