summaryrefslogtreecommitdiff
path: root/core/fxcrt/include/cfx_count_ref.h
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/include/cfx_count_ref.h
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/include/cfx_count_ref.h')
-rw-r--r--core/fxcrt/include/cfx_count_ref.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/include/cfx_count_ref.h b/core/fxcrt/include/cfx_count_ref.h
index 95132a73ca..d709efb67c 100644
--- a/core/fxcrt/include/cfx_count_ref.h
+++ b/core/fxcrt/include/cfx_count_ref.h
@@ -47,7 +47,7 @@ class CFX_CountRef {
return m_pObject == that.m_pObject;
}
bool operator!=(const CFX_CountRef& that) const { return !(*this == that); }
- operator bool() const { return m_pObject; }
+ explicit operator bool() const { return !!m_pObject; }
private:
class CountedObj : public ObjClass {