diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-02-03 16:28:43 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-02-03 16:28:43 -0800 |
commit | c32dac1f9dcd75aeabd9ea1af257499270d2f041 (patch) | |
tree | 2d4b19bdd33c5d8599358c9aeaedd77b2e57906f /core/include/fxcrt | |
parent | 0c01ad05afe4dbc36c6aa32a10a0f98eb677d4be (diff) | |
download | pdfium-c32dac1f9dcd75aeabd9ea1af257499270d2f041.tar.xz |
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
Review URL: https://codereview.chromium.org/889673003
Diffstat (limited to 'core/include/fxcrt')
-rw-r--r-- | core/include/fxcrt/fx_basic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h index 7ad44c6b4d..a3cf5851f8 100644 --- a/core/include/fxcrt/fx_basic.h +++ b/core/include/fxcrt/fx_basic.h @@ -1438,7 +1438,7 @@ public: { m_pObj->Release(); } - operator T*(void) + T* Get(void) { return m_pObj; } |