From c32dac1f9dcd75aeabd9ea1af257499270d2f041 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Tue, 3 Feb 2015 16:28:43 -0800 Subject: 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 --- core/include/fxcrt/fx_basic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/include/fxcrt/fx_basic.h') 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; } -- cgit v1.2.3