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

Issue 2045083003: Remove implicit CFX_CountedRef::operator T*() (Closed)

Created:
4 years, 6 months ago by Tom Sepez
Modified:
4 years, 6 months ago
Reviewers:
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

Remove implicit CFX_CountedRef::operator T*() Explicitly invoke GetObject() method instead. This avoids having code where it looks like non-pointers are assigned to pointers but works due to the cast operator. Committed: https://pdfium.googlesource.com/pdfium/+/7d2a8d966643ebc77c1aa0f0c53a0ffd2d681c4c

Patch Set 1 #

Patch Set 2 : Fix mac build. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -60 lines) Patch
M core/fpdfapi/fpdf_render/fpdf_render.cpp View 9 chunks +25 lines, -29 lines 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_image.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M core/fpdfapi/fpdf_render/fpdf_render_text.cpp View 2 chunks +4 lines, -2 lines 0 comments Download
M core/fpdfdoc/doc_ocg.cpp View 1 chunk +1 line, -1 line 0 comments Download
M core/fxcrt/include/fx_basic.h View 3 chunks +9 lines, -15 lines 1 comment Download
M core/fxge/agg/fx_agg_driver.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M core/fxge/apple/fx_apple_platform.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M core/fxge/dib/fx_dib_composite.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M core/fxge/ge/fx_ge_path.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M fpdfsdk/fpdf_transformpage.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/fpdfeditpage.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (3 generated)
Tom Sepez
Dan, pls. review.
4 years, 6 months ago (2016-06-08 18:32:43 UTC) #2
dsinclair
lgtm https://codereview.chromium.org/2045083003/diff/20001/core/fxcrt/include/fx_basic.h File core/fxcrt/include/fx_basic.h (right): https://codereview.chromium.org/2045083003/diff/20001/core/fxcrt/include/fx_basic.h#newcode688 core/fxcrt/include/fx_basic.h:688: bool NotNull() const { return !IsNull(); } Can ...
4 years, 6 months ago (2016-06-08 18:45:54 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2045083003/20001
4 years, 6 months ago (2016-06-08 18:50:06 UTC) #5
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 18:51:27 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/7d2a8d966643ebc77c1aa0f0c53a0ffd2d68...

Powered by Google App Engine
This is Rietveld 408576698