Index: core/fxcrt/include/cfx_count_ref.h |
diff --git a/core/fxcrt/include/cfx_count_ref.h b/core/fxcrt/include/cfx_count_ref.h |
index cc7cf3d9ed22db13088b575a5f03900d4df4cec0..7dbd5dfe2686ba1e505146d67e148f59a891e68a 100644 |
--- a/core/fxcrt/include/cfx_count_ref.h |
+++ b/core/fxcrt/include/cfx_count_ref.h |
@@ -30,9 +30,6 @@ class CFX_CountRef { |
} |
void SetNull() { m_pObject.Reset(); } |
- bool IsNull() const { return !m_pObject; } |
- bool NotNull() const { return !IsNull(); } |
- |
const ObjClass* GetObject() const { return m_pObject.Get(); } |
template <typename... Args> |
@@ -48,6 +45,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; } |
protected: |
class CountedObj : public ObjClass { |