summaryrefslogtreecommitdiff
path: root/core/fxcrt/include/cfx_retain_ptr.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxcrt/include/cfx_retain_ptr.h')
-rw-r--r--core/fxcrt/include/cfx_retain_ptr.h2
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(); }