From cf7ac195266fe05f7548c531df32c2b4aa4b5608 Mon Sep 17 00:00:00 2001 From: tsepez Date: Thu, 8 Sep 2016 15:47:46 -0700 Subject: explicit operator bool for CFX_RetainPtr and CFX_CountRef Review-Url: https://codereview.chromium.org/2324733003 --- core/fxcrt/cfx_retain_ptr_unittest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fxcrt/cfx_retain_ptr_unittest.cpp') diff --git a/core/fxcrt/cfx_retain_ptr_unittest.cpp b/core/fxcrt/cfx_retain_ptr_unittest.cpp index 4e74e52768..9da0d5ccf8 100644 --- a/core/fxcrt/cfx_retain_ptr_unittest.cpp +++ b/core/fxcrt/cfx_retain_ptr_unittest.cpp @@ -208,8 +208,8 @@ TEST(fxcrt, RetainPtrBool) { PseudoRetainable obj1; CFX_RetainPtr null_ptr; CFX_RetainPtr obj1_ptr(&obj1); - bool null_bool = null_ptr; - bool obj1_bool = obj1_ptr; + bool null_bool = !!null_ptr; + bool obj1_bool = !!obj1_ptr; EXPECT_FALSE(null_bool); EXPECT_TRUE(obj1_bool); } -- cgit v1.2.3