diff options
author | tsepez <tsepez@chromium.org> | 2016-09-08 15:47:46 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-08 15:47:46 -0700 |
commit | cf7ac195266fe05f7548c531df32c2b4aa4b5608 (patch) | |
tree | 58b1b77ba09b3348e42a3257a8672ba83ca674ab /core/fxcrt/include/cfx_retain_ptr.h | |
parent | 9a0736803ae6749ec508e1c3ff5f04a483bbcb56 (diff) | |
download | pdfium-chromium/2855.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_retain_ptr.h')
-rw-r--r-- | core/fxcrt/include/cfx_retain_ptr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcrt/include/cfx_retain_ptr.h b/core/fxcrt/include/cfx_retain_ptr.h index 25edd585cb..e40feb6b31 100644 --- a/core/fxcrt/include/cfx_retain_ptr.h +++ b/core/fxcrt/include/cfx_retain_ptr.h @@ -46,7 +46,7 @@ class CFX_RetainPtr { bool operator!=(const CFX_RetainPtr& that) const { return !(*this == that); } - operator bool() const { return !!m_pObj; } + explicit operator bool() const { return !!m_pObj; } T& operator*() const { return *m_pObj.get(); } T* operator->() const { return m_pObj.get(); } |