summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_retain_ptr_unittest.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-08 15:47:46 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-08 15:47:46 -0700
commitcf7ac195266fe05f7548c531df32c2b4aa4b5608 (patch)
tree58b1b77ba09b3348e42a3257a8672ba83ca674ab /core/fxcrt/cfx_retain_ptr_unittest.cpp
parent9a0736803ae6749ec508e1c3ff5f04a483bbcb56 (diff)
downloadpdfium-cf7ac195266fe05f7548c531df32c2b4aa4b5608.tar.xz
explicit operator bool for CFX_RetainPtr and CFX_CountRefchromium/2855
Review-Url: https://codereview.chromium.org/2324733003
Diffstat (limited to 'core/fxcrt/cfx_retain_ptr_unittest.cpp')
-rw-r--r--core/fxcrt/cfx_retain_ptr_unittest.cpp4
1 files changed, 2 insertions, 2 deletions
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<PseudoRetainable> null_ptr;
CFX_RetainPtr<PseudoRetainable> 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);
}